public class Document extends Object implements Comparable<Document>
Document class represents a single document which may be either used as processing input or
training input. The Document class contains the actual text, the option lattice containing
all the possible interpretations of this document.| Modifier and Type | Field and Description |
|---|---|
Option |
bottom |
static int |
docIdCounter |
int |
expandNodeIdCounter |
int |
id |
int |
optionIdCounter |
ExpandNode |
root |
ExpandNode |
selectedExpandNode |
long |
selectedMark |
Option |
selectedOption |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Document doc) |
String |
conflictsToString() |
boolean |
contains(Range r) |
static Document |
create(String content) |
String |
getContent() |
String |
getText(Range r) |
int |
length() |
String |
selectedOptionsToString() |
String |
toString() |
public final int id
public static int docIdCounter
public int optionIdCounter
public int expandNodeIdCounter
public Option bottom
public ExpandNode root
public ExpandNode selectedExpandNode
public Option selectedOption
public long selectedMark
public Document(String content)
public String getContent()
public int length()
public String conflictsToString()
public String selectedOptionsToString()
public boolean contains(Range r)
public int compareTo(Document doc)
compareTo in interface Comparable<Document>Copyright © 2017. All rights reserved.