4

I tried for creating sentence vectors in fasttext for a single line in english in python, but all i got was solution related to CLI in fasttext.

Link for fast test sentence vector creation

I want a function or a library that can easily provide me sentence vector for the input sentence in an english text form that I can use it in my python script.

Regolith
  • 2,944
  • 9
  • 33
  • 50
  • Hi and welcome to Stack Overflow! I noticed your question doesn't show what the error is. You say "all i got was solution related to CLI in fasttext." That's fine, but include what you're actually seeing. If it's not an error code, take a screen-shot and attach it to your post. Also include the code you tried: you say "I tried creating sentence vectors in fasttext for a single line." Be sure to include what that line is. Also see [formatting help](https://stackoverflow.com/editing-help) to make your question more readable. This will help get your question answered asap. Good Luck! – Travis Heeter Jul 06 '18 at 13:24

1 Answers1

1

This one:

https://pypi.org/project/fasttext/

Then we just need to average or sum output vectors for each token in a sentence.

concrete_rose
  • 198
  • 3
  • 15