stanfordnlp / CoreNLP

CoreNLP: A Java suite of core NLP tools for tokenization, sentence segmentation, NER, parsing, coreference, sentiment analysis, etc.
http://stanfordnlp.github.io/CoreNLP/
GNU General Public License v3.0
9.71k stars 2.7k forks source link

negation modifier #1410

Closed Shasetty closed 10 months ago

Shasetty commented 10 months ago

Hi sir,

Can i get the complete list of words, which are considered in negation modifier.

List advmod : never , n’t , not det : no

Thanks in advance.

Regards Shankar

AngledLuffa commented 10 months ago

In what context, dependencies?

The NOT pattern is:

EnglishPatterns.java line 104

// match "not", "n't", "nt" (for informal writing), or "never" ascomplete string public static final String NOT_PAT_WORD = "^(?i:n[o'’]?t|never)$";

On Sat, Jan 27, 2024 at 4:55 PM Shasetty @.***> wrote:

Hi sir,

Can i get the complete list of words, which are considered in negation modifier.

List advmod : never , n’t , not det : no

Thanks in advance.

Regards Shankar

— Reply to this email directly, view it on GitHub https://github.com/stanfordnlp/CoreNLP/issues/1410, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2AYWL75JMHO7WZG6SBFH3YQWOYFAVCNFSM6AAAAABCNX72VCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDGOBZGMYDGOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Shasetty commented 10 months ago

Under basic dependencies of Stanford typed dependencies, I need all the list of words, which are considered as negation modifiers.

example text Bill is not a scientist. neg(scientist-5, not-3)

Bill is no scientist. neg(scientist-4, no-3)

Bill does n't drive. neg(drive-4, n't-3)

thanks in advance.

AngledLuffa commented 10 months ago

What I just sent is the regex used by the dependencies

https://github.com/stanfordnlp/CoreNLP/blob/f8838d2639589f684cbaa58964cb29db5f23df7f/src/edu/stanford/nlp/trees/EnglishPatterns.java#L104

On Sun, Jan 28, 2024 at 12:53 AM Shasetty @.***> wrote:

Under basic dependencies of Stanford typed dependencies, I need all the list of words, which are considered as negation modifiers.

example text Bill is not a scientist. neg(scientist-5, not-3)

Bill is no scientist. neg(scientist-4, no-3)

Bill does n't drive. neg(drive-4, n't-3)

thanks in advance.

— Reply to this email directly, view it on GitHub https://github.com/stanfordnlp/CoreNLP/issues/1410#issuecomment-1913520040, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2AYWKK3KAFY4AVTD4WYJDYQYGW7AVCNFSM6AAAAABCNX72VCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGUZDAMBUGA . You are receiving this because you commented.Message ID: @.***>

Shasetty commented 10 months ago

Thank You Sir.