public class SentenceSet extends Object
| Constructor and Description |
|---|
SentenceSet(Document doc)
create a new SentenceSet from a document by retrieving all the
sentence annotations.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
inSameSentence(int posn1,
int posn2)
returns
true if posn1 and posn2
are within the same sentence. |
int |
pseudoHobbsDistance(int posn1,
int posn2)
returns a distance measure between posn1 and posn2 to be used in
place of Hobbs distance if no parse is available.
|
int |
sentenceNumber(int posn)
returns the number of the sentence containing character 'posn'
|
Vector<Annotation> |
sentences()
returns a Vector of sentence Annotations.
|
int |
sentencesBetween(int posn1,
int posn2) |
int |
size()
returns the number of sentences.
|
public SentenceSet(Document doc)
public Vector<Annotation> sentences()
public int size()
public int sentencesBetween(int posn1,
int posn2)
public int sentenceNumber(int posn)
public boolean inSameSentence(int posn1,
int posn2)
true if posn1 and posn2
are within the same sentence.public int pseudoHobbsDistance(int posn1,
int posn2)
Copyright © 2016 New York University. All rights reserved.