intent-palette-tfidf / examples.py
erayack's picture
Publish MIT experimental TF-IDF 0.1.1 with evaluation limitations
c7471be verified
Raw History Blame Contribute Delete
270 Bytes
"""Handwritten API usage examples, not evaluation or training data."""
from intent_palette_tfidf import load_predictor
p = load_predictor()
print(p.predict("show my shopping list"))
print(p.predict(["show my shopping list", "set a timer"]))
assert p.predict([]) == []