facebookresearch / InferSent

InferSent sentence embeddings
Other
2.28k stars 470 forks source link

Word's significance #74

Closed wendysyn89 closed 6 years ago

wendysyn89 commented 6 years ago

May I know how to get the list of percentage/score of each words' significance instead of visualisation?

aconneau commented 6 years ago

Hi,

the visualize function in models.py already returns this information, in addition to plotting the significance: https://github.com/facebookresearch/InferSent/blob/master/models.py#L269

Best, Alexis