pommedeterresautee / fastrtext

R wrapper for fastText
https://pommedeterresautee.github.io/fastrtext/
Other
101 stars 15 forks source link

computation with sentences instead of single words #18

Closed watashiwa-toki closed 6 years ago

watashiwa-toki commented 6 years ago

For example, if in "get_word_distance(model, w1, w2)" w1 and w2 be n-word sentences instead of single words, does result of this command is real distance between sentences, or its working only with single words?

pommedeterresautee commented 6 years ago

Hi, This function has been built for a single word only. There are 2 ways to perform what you are asking:

pommedeterresautee commented 6 years ago

Here a commit which implements the feature https://github.com/pommedeterresautee/fastrtext/commit/80ba4b48b336c6435800cbe702e648768e19541c The function is get_sentence_representation