Skip to content
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

DOESNOT WORK FOR LIWC2015 #1

Open
myrainbowandsky opened this issue Dec 2, 2019 · 4 comments
Open

DOESNOT WORK FOR LIWC2015 #1

myrainbowandsky opened this issue Dec 2, 2019 · 4 comments

Comments

@myrainbowandsky
Copy link


IndexError Traceback (most recent call last)
in
----> 1 liwc = Liwc('/Users/lawrencexu/Documents/data/MisInfoText/LIWC2015.dic')

~/Library/Python/3.7/lib/python/site-packages/liwc/liwc.py in init(self, filepath)

~/Library/Python/3.7/lib/python/site-packages/liwc/liwc.py in _load_dict_file(self, filepath)

IndexError: list index out of range

@ma-ji
Copy link

ma-ji commented Feb 13, 2020

An off-topic question: where you get the LIWC2015.dic file?

@mam9
Copy link

mam9 commented Feb 18, 2020

I think index out of range issues come with a different formatting of the new 2015 dictionary. Spaces seem to be the problem. Check out this issue from a similar package chbrown/liwc-python#3

I also would like to know where you got the dictionary file though? I bought LIWC but that only provides an executable.

@sara-02
Copy link

sara-02 commented Apr 21, 2020

@mam9 As pointed out above the .dic is encrypted for the latest versions of LIWC2015.
But to obtain it, it is present inside the LIWC2015-app-1.6.0.jar.

@fris-t
Copy link

fris-t commented Apr 30, 2020

Check out this discussion: chbrown/liwc-python#5
The solution is there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants