JFastText icon indicating copy to clipboard operation
JFastText copied to clipboard

ngram embedding access

Open ali3assi opened this issue 8 years ago • 1 comments

There is any way to get the ngram for a given word. suppose the word is music and that this music belongs to vocab (we have the embedding of music). How can i get the embedding of the ngram of music, e.g embedding of mus, usi, sic?

ali3assi avatar Nov 17 '17 19:11 ali3assi

Check https://github.com/lidalei/JFastText/blob/master/src/main/cpp/fasttext_wrapper.h#L29, https://github.com/lidalei/JFastText/blob/master/src/main/cpp/fasttext_wrapper.cc#L89 and https://github.com/lidalei/JFastText/blob/master/src/main/java/com/github/jfasttext/JFastText.java#L100

lidalei avatar Jan 05 '18 22:01 lidalei