stephbuon / posextract

Grammatical information extraction methods designed for the analysis of historical and contemporary textual corpora.
MIT License
3 stars 0 forks source link

Add Negation to Adj-Noun and Subj-Verb Paris #42

Open stephbuon opened 2 years ago

stephbuon commented 2 years ago

Add negation to adj-noun pairs:

Add negation to subj-noun pairs:

stephbuon commented 2 years ago

I'm not sure negation was added to adjective_noun pairs:

from posextract import adj_noun_pairs

sent = 'He was not a green cat.'
adj_noun_pairs.extract(sent)
stephbuon commented 2 years ago

subj_verb_pairs needs to be fixed:

sent = 'He did not walk home.'
subj_verb_pairs.extract(sent)

Returns nothing.