public class Document extends Object
Document class represents a single document within a corpus of documents. A set of documents can be
either used to train a new model or a document can be processed and annotated by an already trained model.
The Document class contains the actual text, a set of initial annotations, the option lattice containing
all the possible interpretations of this document, a set of option conflicts and a ranked list of weighted options.| Modifier and Type | Field and Description |
|---|---|
Option |
bottom |
Range |
bottomRange |
int |
optionIdCounter |
int |
primOptionIdCounter |
Map<List<int[]>,Range> |
ranges |
ExpandNode |
selectedExpandNode |
long |
selectedMark |
Option |
selectedOption |
Option |
top |
Range |
topRange |
| Modifier and Type | Method and Description |
|---|---|
String |
conflictsToString() |
boolean |
contains(Range r) |
static Document |
create(String content) |
String |
getContent() |
boolean |
isSelected(Activation act) |
int |
length() |
String |
selectedOptionsToString() |
String |
toString() |
public int primOptionIdCounter
public int optionIdCounter
public Option top
public Option bottom
public ExpandNode selectedExpandNode
public Option selectedOption
public long selectedMark
public Range topRange
public Range bottomRange
public Document(String content)
public boolean isSelected(Activation act)
public String getContent()
public int length()
public String conflictsToString()
public String selectedOptionsToString()
public boolean contains(Range r)
Copyright © 2016. All rights reserved.