public class NamePosition
extends java.lang.Object
Given a text split into sentences and words, a name position specifies the position of a name string as a triple consisting of the sentence number, starting word number in the sentence, and ending word number in the sentence.
Modifier and Type | Field and Description |
---|---|
int |
endingWord
Ending word number in sentence.
|
int |
properNounCount
Proper noun count.
|
int |
sentence
Sentence number.
|
int |
startingWord
Starting word number in sentence.
|
Constructor and Description |
---|
NamePosition()
Create empty name position.
|
NamePosition(int sentence,
int startingWord,
int endingWord,
int properNounCount)
Create name position from sentence and word positions.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Return name position as a string.
|
public int sentence
public int startingWord
public int endingWord
public int properNounCount
public NamePosition()
public NamePosition(int sentence, int startingWord, int endingWord, int properNounCount)
sentence
- The sentence number containing the name.startingWord
- The starting word.endingWord
- The ending word.properNounCount
- The proper noun count.