-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError after calling pythainlp.sentiment(string, 'ulmfit') #172
Comments
Please use fastai 0.7 (PyThaiNLP 1.7). We updata to Fastai 1.0 in the next release. |
I've tried fastai library version 0.7 with the same code and this error occurred
Ps. So, are you going to remove the sentiment analysis function on next release and separate this task to other library or something? |
@LXZE Fastai 0.7 need PyTorch 0.4.1. |
I think NLP for Thai language is an opportunity. Would like to know better what this guy is doing. Do you think you could talk to him? I will coach you before if you like.
Phil
From: Wannaphong Phatthiyaphaibun [mailto:notifications@github.com]
Sent: Thursday, January 24, 2019 8:35 AM
To: PyThaiNLP/pythainlp
Cc: Subscribed
Subject: Re: [PyThaiNLP/pythainlp] ModuleNotFoundError after calling pythainlp.sentiment(string, 'ulmfit') (#172)
@LXZE<https://github.com/LXZE> Fastai 0.7 need PyTorch 0.4.1.
You can train the sentiment analysis from https://github.com/PyThaiNLP/pythainlp/blob/dev/notebooks/ulmfit_sentiment_example.ipynb in the next release (PyThaiNLP 2.0).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#172 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AdzaxmShvErfoTBN2bOA3tGGpDGF2OQtks5vGeCogaJpZM4aNFhJ>.
|
@LXZE Seems like there is a bug with the versions of pre-1.0 fastai. I've tried combing through the commits but still no luck. We are removing sentiment analysis because
|
Understood. I would train the model according to the given example on my own later. Closing this issue now. |
Describe the bug
After the installation of Pythainlp version 1.7 inside Google Colab, I have called a function pythainlp.sentiment(string, 'ulmfit') and then an error occurred as below example.
To Reproduce
Steps to reproduce the behaviour:
Note
After I've tried to install torchvision and fastai in the latest version and v1.0.22 (according to this issue).
The fastai library still causes an error
ModuleNotFoundError: No module named 'fastai.lm_rnn'
So, I raise this issue.Expected behaviour
According to pythainlp 1.7 document on sentiment analysis,
This method should return a prediction result from a string and not raise an error after calling sentiment(string, 'ulmfit) method without any additional code that importing all of the required libraries.
Example
Here is a google colab's notebook link
Desktop
Suggestion
As this issue might be about Fastai's problem, I suggest that this method should automatically install a torch library and the specific version of Fastai, or make a model become compatible with the latest version.
The text was updated successfully, but these errors were encountered: