Closed DavidMinarsch closed 6 years ago
from uncertainty.classifier import Classifier
cls = Classifier() cls.predict("I wonder if I am the walrus.")
cls = Classifier(binary=True) cls.predict("I wonder if I am the walrus.")
cls = Classifier (granularity='sentence') cls.predict("I wonder if I am the walrus.")
cls = Classifier (granularity='sentence', binary=True) cls.predict("I wonder if I am the walrus.")
Thank you very much for your suggestion. I've updated the Installation & Usage page on the Wiki.
from uncertainty.classifier import Classifier
cls = Classifier() cls.predict("I wonder if I am the walrus.")
['C', 'C', 'N', 'C', 'C', 'C', 'C', 'C']
cls = Classifier(binary=True) cls.predict("I wonder if I am the walrus.")
['C', 'C', 'U', 'C', 'C', 'C', 'C', 'C']
cls = Classifier (granularity='sentence') cls.predict("I wonder if I am the walrus.")
N
cls = Classifier (granularity='sentence', binary=True) cls.predict("I wonder if I am the walrus.")
U