|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectipipan.spejd.entities.Entity
ipipan.spejd.entities.Segment
public class Segment
A representation of segment - the smallest interpreted unit, ie. a sequence of characters together with their morphosyntactic interpretations.
| Field Summary |
|---|
| Fields inherited from class ipipan.spejd.entities.Entity |
|---|
ARRAY, GROUP, NOSPACE, NULL, SEGMENT, TOKEN, type, WORD |
| Constructor Summary | |
|---|---|
Segment(Config conf)
|
|
Segment(java.lang.String id,
java.lang.String orth,
Interpretation[] interp,
Config conf)
|
|
| Method Summary | |
|---|---|
void |
add(boolean delOld,
java.lang.String[] data)
Add interpretations, optionally deleting old ones. |
void |
delete(java.util.regex.Pattern pattern,
boolean neg)
Delete all interpretations matching / not matching specified pattern. |
java.lang.String |
getAttr(int id)
Returns orthographic form of the token or base form (lemma) of the first interpretation. |
java.util.Set<java.lang.String> |
getAttrValues(int[] attrIds,
boolean acceptNull)
|
Interpretation[] |
getInterpretationArray()
Get the set of interpretations. |
java.util.Set<Interpretation> |
getInterpretations()
Get the set of interpretations. |
Segment |
getSemHead()
Get semantic head of an entity. |
Segment |
getSynHead()
Get syntactic head of an entity. |
void |
printXML(java.io.PrintStream out)
Prints the XML (XCES) representation of entity on the given PrintStream. |
| Methods inherited from class ipipan.spejd.entities.Entity |
|---|
concatAttr, concatAttr, getCommonValues, getGroupType, getId, getReplacement, setReplacement, setRule, toTxt, unify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Segment(Config conf)
public Segment(java.lang.String id,
java.lang.String orth,
Interpretation[] interp,
Config conf)
| Method Detail |
|---|
public java.util.Set<java.lang.String> getAttrValues(int[] attrIds,
boolean acceptNull)
getAttrValues in class Entity
public void add(boolean delOld,
java.lang.String[] data)
Entity
add in class Entity
public void delete(java.util.regex.Pattern pattern,
boolean neg)
Entity
delete in class Entitypublic java.lang.String getAttr(int id)
getAttr in class Entityid - Attribute.ORTH or Attribute.BASE
public Segment getSemHead()
Entity
getSemHead in class Entitypublic Segment getSynHead()
Entity
getSynHead in class Entitypublic java.util.Set<Interpretation> getInterpretations()
Entity
getInterpretations in class Entitypublic Interpretation[] getInterpretationArray()
Entity
getInterpretationArray in class Entitypublic void printXML(java.io.PrintStream out)
Entity
printXML in class Entity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||