Skip to content

Sentence encodings + Sentence similarity

Compare
Choose a tag to compare
@goru001 goru001 released this 10 Nov 18:03
· 52 commits to master since this release

New Features:

  • You can now get 400 dimensional encoding for sentences using get_sentence_encoding - supported for all languages in iNLTK
  • You can now get similarity score (cosine similarity) between 2 sentences using get_sentence_similarity - supported for all languages in iNLTK.

New Model:

  • The above features will not work for punjabi language with the old model. Please execute the following code-snippet before using them
from inltk.inltk import reset_models

>> reset_models('pa')
>> setup('pa')