|
|||||||||
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, WORD |
Constructor Summary | |
---|---|
Segment()
|
|
Segment(java.lang.String id,
java.lang.String orth,
Interpretation[] interp)
|
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. |
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()
public Segment(java.lang.String id, java.lang.String orth, Interpretation[] interp)
Method Detail |
---|
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 Entity
public java.lang.String getAttr(int id)
getAttr
in class Entity
id
- Attribute.ORTH or Attribute.BASE
public Segment getSemHead()
Entity
getSemHead
in class Entity
public Segment getSynHead()
Entity
getSynHead
in class Entity
public java.util.Set<Interpretation> getInterpretations()
Entity
getInterpretations
in class Entity
public Interpretation[] getInterpretationArray()
Entity
getInterpretationArray
in class Entity
public 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 |