|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSnippet
public class Snippet
Holds all the information regarding a specific text snippet within a document.
Field Summary | |
---|---|
int |
endNode
Node number of the last word in the hit |
int |
endOffset
Word number of the last word in the hit, plus one |
int |
rank
Rank of this snippet in the document, zero being the "best" |
float |
score
Score of the snippet |
String |
sectionType
'sectionType' from the original document, if any |
int |
startNode
Node number of the first word in the hit |
int |
startOffset
Word number of the first word in the hit |
String |
text
Text of the snippet, including the hit and as much context as poss |
Constructor Summary | |
---|---|
Snippet()
|
Method Summary |
---|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int rank
public float score
public String text
public String sectionType
public int startNode
public int startOffset
public int endNode
public int endOffset
Constructor Detail |
---|
public Snippet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |