|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectipipan.spejd.entities.Interpretation
public class Interpretation
A representation of a single morphosyntactic interpretation: lemma, grammatical class, grammatical categories. Additionally it contains data for disambiguation annotation - previous disambiguation (for example read from the input file, ignored during parsing, but preserved for the final output) and current disambiguation (added and used by the parser itself).
| Field Summary | |
|---|---|
protected Config |
conf
|
static java.lang.String |
REPLACE_BASE
|
| Constructor Summary | |
|---|---|
Interpretation(Interpretation interp,
java.lang.String modifier,
Config conf)
Create an interpretation by modyfying attributes of an existing one. |
|
Interpretation(Interpretation interp,
java.lang.String modifier,
java.lang.String base,
Config conf)
Create an interpretation by modifying attributes of an existing one. |
|
Interpretation(java.lang.String s,
boolean disamb,
Config conf)
Create an interpretation with the specified data and preserving previous disambiguation value. |
|
Interpretation(java.lang.String s,
Config conf)
Create an interpretation with the specified data. |
|
| Method Summary | |
|---|---|
int |
compareTo(Interpretation i)
|
void |
delete()
Mark the interpretations as deleted (set the disambiguation annotation). |
java.lang.String |
getBase()
|
boolean |
matches(java.util.regex.Pattern pattern)
Check if the interpretation matches the specified pattern. |
void |
modify(java.lang.String modifier)
Modify attributes of an interpretations. |
void |
printTxt(java.lang.StringBuilder res)
|
void |
printXML(java.io.PrintStream out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Config conf
public static final java.lang.String REPLACE_BASE
| Constructor Detail |
|---|
public Interpretation(java.lang.String s,
Config conf)
public Interpretation(java.lang.String s,
boolean disamb,
Config conf)
public Interpretation(Interpretation interp,
java.lang.String modifier,
Config conf)
public Interpretation(Interpretation interp,
java.lang.String modifier,
java.lang.String base,
Config conf)
| Method Detail |
|---|
public int compareTo(Interpretation i)
compareTo in interface java.lang.Comparable<Interpretation>public boolean matches(java.util.regex.Pattern pattern)
public void delete()
public void modify(java.lang.String modifier)
public java.lang.String getBase()
public void printTxt(java.lang.StringBuilder res)
public void printXML(java.io.PrintStream out)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||