Skip to content

Commit

Permalink
003: Adding spacey lib
Browse files Browse the repository at this point in the history
  • Loading branch information
TharinduDR committed Apr 16, 2021
1 parent 67ed8b4 commit 7f2bfac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mudes/algo/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def predict_spans(model, text: str, language: str = "en"):
else:
nlp = MultiLanguage()

tokenizer = nlp.Defaults.create_tokenizer(nlp)
tokenizer = nlp.tokenizer
tokens = tokenizer(text)
sentences = []
tokenised_text = []
Expand Down

0 comments on commit 7f2bfac

Please sign in to comment.