Skip to content

v2.1.0

Choose a tag to compare

@shon-otmazgin shon-otmazgin released this 10 Nov 18:08
· 46 commits to main since this release

NEW FEATURE (thanks to @aryehgigi):

Predict function signature changed to support tokenized text as input:

texts: Union[str, List[str], List[List[str]]],  # similar to huggingface tokenizer inputs
is_split_into_words: bool = False

if you send a tokenized text to the predict function use is_split_into_words=True

If you want to use a single tokenized sequence you must setis_split_into_words=True (to lift the ambiguity with a batch of sequences)