Converting sentences to vector form

Bhaskar Dhariyal dhariyalbhaskar at gmail.com
Tue Jun 27 07:15:21 EDT 2017


You can't train a model on words. You need to convert it into numerical form(vector form). For this there are some packages like word2vec and doc2vec. 

Thanks for replying 


On Tuesday, 27 June 2017 16:37:56 UTC+5:30, Ben Bacarisse  wrote:
> Bhaskar Dhariyal <dhariyalbhaskar at gmail.com> writes:
> 
> > I am doing a project on data science. I need to convert sentences to
> > vectorial form.
> 
> That's not a term I am familiar with.  If it's standard, that's my
> fault, but you can still help people like me by explaining what you
> mean.  And if it is not a standard term then people will just be
> guessing what "vectorial form" is.
> 
> If it's hard to define you can still help us by showing a few simple
> examples.  Give some sentences, and then give the "vectorial form".
> 
> <snip>
> > Link to code and dataset:
> > https://drive.google.com/open?id=0B1D4AyluMGU0Uk5qYUk3dVAtd00
> 
> Not everyone is going to follow a link to try to find out what you
> need.  Put as much as you can in the actual posting.
> 
> > Apologoes for ugly code
> 
> I didn't find anything there that helped me understand the problem but
> that may be because I don't have IPython.  Maybe loading the ipynb file
> would show me some code, but it would, again, be better to post the code
> you are having trouble with here.
> 
> -- 
> Ben.




More information about the Python-list mailing list