It may be very basic problem but i have stuck with this since 2 hours. I am trying to execute below line of code:
from gensim.models.phrases import Phrases , Phraser
but i am getting error: cannot import name 'Phraser' as for as i know we get this kind of error when Phraser is neither variable nor function in gensim.models.phrases but i have checked gensim's homepage and found this:
class gensim.models.phrases.Phraser(phrases_model)
I have gensim's latest module 0.13.4 and i am using Python 3.5.2 |Anaconda 4.1.1 (64-bit), on windows 10.
I was able to import Phraser like this on Windows 8:
Using Anaconda with Python 2.7 and gensim 1.0.1