chbrown / liwc-python

Linguistic Inquiry and Word Count (LIWC) analyzer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: module 'liwc' has no attribute 'load_token_parser'

miao3906 opened this issue · comments

commented

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!

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!