|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectse.lth.cs.nlp.nlputils.annotations.AnnotatedText
public class AnnotatedText
A text with a list of annotation layers.
| Field Summary | |
|---|---|
List<AnnotationLayer> |
layers
|
String[] |
lemmas
|
String[] |
poss
|
HashMap<String,Object> |
properties
|
String |
text
|
String[] |
tokens
|
| Constructor Summary | |
|---|---|
AnnotatedText()
Creates a new AnnotatedText. |
|
| Method Summary | |
|---|---|
Object |
getProperty(String name)
Gets a property of the annotated text. |
void |
setProperty(String name,
Object value)
Sets a property of the annotated text. |
String |
toColoredHTML()
Returns an HTML representation of the layers, which can be used to present the text in a JEditorPane. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String text
public HashMap<String,Object> properties
public List<AnnotationLayer> layers
public String[] tokens
public String[] poss
public String[] lemmas
| Constructor Detail |
|---|
public AnnotatedText()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String toColoredHTML()
public Object getProperty(String name)
name - the name of the property to check.
public void setProperty(String name,
Object value)
name - the name of the property to set.value - the new value of the property.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||