-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Masso edited this page Jan 20, 2022
·
16 revisions
A simple text classifier that uses similarities between the text and the database to tell which entity is responsible.
This classifier was created specifically for Karen Virtual Assistent
Args:
acceptable (int, optional): Acceptable percentage of similarity.
Args:
patterns (dict): Patterns generated by `trainer.py`.
input (set): Input processed by `simpleclassifier.processText`.
Returns:
Boolean/Tuple: Returns a tuple with the probable answer and similarity.
Args:
text (str): User input text.
Returns:
[set]: Returns a set with the processed text.