|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectse.lth.cs.nlp.nlputils.annotations.AnnotationLayer
public class AnnotationLayer
Annotation layer.
| Field Summary | |
|---|---|
String |
label
|
ArrayList<Span> |
spans
|
| Constructor Summary | |
|---|---|
AnnotationLayer()
|
|
| Method Summary | |
|---|---|
CompareResult |
compare(AnnotationLayer other)
Compares this layer to another layer. |
void |
findCharIndices(String[] tokens)
Sets the character indices for all spans, assuming that the token indices are already set. |
void |
findTokenIndices(String[] tokens)
Sets the token indices for all spans, assuming that the character indices are already set. |
void |
printDetailed(String text)
Detailed printout. |
ArrayList<Span> |
removeEmptySpans()
Removes all empty spans from the layer. |
(package private) String |
toColoredHTML(String text)
Returns an HTML representation of the layer. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String label
public ArrayList<Span> spans
| Constructor Detail |
|---|
public AnnotationLayer()
| Method Detail |
|---|
public CompareResult compare(AnnotationLayer other)
other - the layer to compare with.
public String toString()
toString in class Objectpublic void printDetailed(String text)
text - public ArrayList<Span> removeEmptySpans()
public void findTokenIndices(String[] tokens)
tokens - the tokens the indices refer to.public void findCharIndices(String[] tokens)
tokens - the tokens the indices refer to.String toColoredHTML(String text)
text - the text.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||