-
Notifications
You must be signed in to change notification settings - Fork 50
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
AttributeError: module 'liwc' has no attribute 'load_token_parser' #20
Comments
Hi there! I want to echo the thanks for making this. I was wondering if there is any update on this issue as I am also still getting the "module 'liwc' has no attribute 'load_token_parser'". There aren't any other viable options to use LIWC in python so I would really appreciate an acknowledgement or update on this. Again, can't thank you enough for your work on this! |
I also encounter the same problem "module 'liwc' has no attribute 'load_token_parser'"... Completely lost 😢 |
Taking a wild guess here since I don't have nearly enough context, but I expect anyone running into this has an unrelated If this is your problem, the solution is to name your files / directories something different. |
I simply left this problem for two days and did nothing. Suddenly it was fixed. Don't know what happened. 😉 |
Hi Brown,
Thanks so much for your contribution. I got the 2015 dic from developer. When I try to use the liwc, it shows the attribute error. I am a newbie in Python. Just don't know hw to solve the issue cause I can't similar solutions online to this error. The code I used is as follows:
import liwc
liwcPath = ('D:/Dropbox/01_CEO activism/Data/01_raw/LIWC2015Dictionary.dic')
parse, category_names = liwc.load_token_parser('liwcPath')
and the error is like:
C:\Users\miaoyun2\AppData\Local\Programs\Python\Python310\python.exe "D:/CEO activism_Data/02_dofiles/textanalysis.py"
Traceback (most recent call last):
File "D:\CEO activism_Data\02_dofiles\textanalysis.py", line 11, in
parse, category_names = liwc.load_token_parser('liwcPath')
AttributeError: module 'liwc' has no attribute 'load_token_parser'
Thank you so much for your time!
The text was updated successfully, but these errors were encountered: