CorefMention

CorefMention

Class representing an CorefMention

Constructor

new CorefMention()

Source:

Methods

(static) fromJSON(data) → {CorefMention}

Source:

Get an instance of CorefMention from a given JSON

Parameters:
Name Type Description
data CorefMentionJSON

The match data, as returned by CoreNLP API service

Returns:

mention - A new CorefMention instance

Type
CorefMention

animacy() → {"ANIMATE"|"INANIMATE"|"UNKNOWN"}

Source:

Retrieves the mention animacy

Returns:

animacy

Type
"ANIMATE" | "INANIMATE" | "UNKNOWN"

endIndex() → {number}

Source:

Retrieves the mention endIndex

Returns:

endIndex

Type
number

fromJSON(data) → {CorefMention}

Source:

Update an instance of CorefMention with data provided by a JSON

Parameters:
Name Type Description
data CorefMentionJSON

The mention data, as returned by CoreNLP API service

Returns:

mention - The current mention instance

Type
CorefMention

gender() → {"FEMALE"|"MALE"|"NEUTRAL"|"UNKNOWN"}

Source:

Retrieves the mention gender

Returns:

gender

Type
"FEMALE" | "MALE" | "NEUTRAL" | "UNKNOWN"

headIndex() → {number}

Source:

Retrieves the mention headIndex

Returns:

headIndex

Type
number

id() → {string}

Source:

Retrieves the mention ID

Returns:

id

Type
string

isRepresentativeMention() → {boolean}

Source:

Tells you if the mentions is representative or not

Returns:

isRepresentativeMention

Type
boolean

number() → {"SINGULAR"|"PLURAL"|"UNKNOWN"}

Source:

Retrieves the mention number

Returns:

number

Type
"SINGULAR" | "PLURAL" | "UNKNOWN"

sentence() → {Sentence}

Source:

Retrieves the mention's sentence container

Returns:

sentence

Type
Sentence

sentNum() → {number}

Source:
See:
  • CorefMention.sentence() for simplicity

Retrieves the mention sentence number

Returns:

sentNum

Type
number

startIndex() → {number}

Source:

Retrieves the mention startIndex

Returns:

startIndex

Type
number

text() → {string}

Source:

Retrieves the mention text

Returns:

text

Type
string

token() → {Token}

Source:

Retrieves the mention's associated token

Returns:

token

Type
Token

type() → {"PRONOMINAL"|"NOMINAL"|"PROPER"|"LIST"}

Source:

Retrieves the mention type

Returns:

type

Type
"PRONOMINAL" | "NOMINAL" | "PROPER" | "LIST"