-
Notifications
You must be signed in to change notification settings - Fork 52
Description
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!