public class Sentence
extends edu.illinois.cs.cogcomp.lbjava.parse.LinkedChild
SentenceSplitter
will leave them
in). However, this class also provides methods to convert that string to
other representations.Modifier and Type | Field and Description |
---|---|
String |
text
The actual text of the sentence.
|
Constructor and Description |
---|
Sentence(String t)
Constructs a sentence from its text.
|
Sentence(String t,
int s,
int e)
Constructor that sets the character offsets of this sentence.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
The string representation of a
Sentence is just its text. |
edu.illinois.cs.cogcomp.lbjava.parse.LinkedVector |
wordSplit()
Creates and returns a
LinkedVector representation of this
sentence in which every LinkedChild is a Word . |
public String text
public Sentence(String t)
t
- The text of the sentence.public Sentence(String t, int s, int e)
t
- The text of the sentence.s
- The offset at which this child starts.e
- The offset at which this child ends.public edu.illinois.cs.cogcomp.lbjava.parse.LinkedVector wordSplit()
LinkedVector
representation of this
sentence in which every LinkedChild
is a Word
.
Offset information is respected and propagated.LinkedVector
representation of this sentence.Word
Copyright © 2017. All rights reserved.