williamleif / socialsent

Code and data for inducing domain-specific sentiment lexicons.
Apache License 2.0
195 stars 76 forks source link

On the use of cooccurgen.py #21

Open RacheleSprugnoli opened 4 years ago

RacheleSprugnoli commented 4 years ago

Dear William, I’d like to use your code to induce a sentiment lexicon from a new corpus. In your answer to the issue #8, you wrote that the first step is to “Use representations/cooccurgen.py to process a corpus and construct co-occurrence matrices.” By looking at cooccurgen.py, it seems that it takes in input a corpus in the COHA word_lemma_pos format and it also needs a file called index.pkl.

Thanks a lot in advance! Best, Rachele