public class MorphInterpretation
extends java.lang.Object
The result of morphological analysis or synthesis
The result of analysis is a directed acyclic graph with numbered nodes representing positions in text (points _between_ segments) and edges representing interpretations of segments that span from one node to another. E.g.,
{0,1,"ja","ja","ppron12:sg:nom:m1.m2.m3.f.n1.n2:pri"} | | {1,2,"został","zostać","praet:sg:m1.m2.m3:perf"} | | __| ____| __{2,3,"em","być","aglt:sg:pri:imperf:wok"} / \ / \ / \ * Ja * został*em * 0 1 2 3
Note that the word 'zostałem' got broken into 2 separate segments.
One MorphInterpretation instance describes one edge of this DAG.
Modifier | Constructor and Description |
---|---|
protected |
MorphInterpretation(pl.sgjp.morfeusz._MorphInterpretation mi) |
|
MorphInterpretation() |
Modifier and Type | Method and Description |
---|---|
static MorphInterpretation |
createIgn(int startNode,
int endNode,
java.lang.String orth,
java.lang.String lemma) |
static MorphInterpretation |
createWhitespace(int startNode,
int endNode,
java.lang.String orth) |
int |
getEndNode() |
java.util.Collection<java.lang.String> |
getLabels(Morfeusz morfeusz) |
java.lang.String |
getLabelsAsString(Morfeusz morfeusz) |
int |
getLabelsId() |
java.lang.String |
getLemma() |
java.lang.String |
getName(Morfeusz morfeusz) |
int |
getNameId() |
java.lang.String |
getOrth() |
int |
getStartNode() |
java.lang.String |
getTag(Morfeusz morfeusz) |
int |
getTagId() |
boolean |
isIgn() |
boolean |
isWhitespace() |
void |
setEndNode(int value) |
void |
setLabelsId(int value) |
void |
setLemma(java.lang.String value) |
void |
setNameId(int value) |
void |
setOrth(java.lang.String value) |
void |
setStartNode(int value) |
void |
setTagId(int value) |
protected MorphInterpretation(pl.sgjp.morfeusz._MorphInterpretation mi)
public MorphInterpretation()
public java.util.Collection<java.lang.String> getLabels(Morfeusz morfeusz)
public static MorphInterpretation createIgn(int startNode, int endNode, java.lang.String orth, java.lang.String lemma)
public static MorphInterpretation createWhitespace(int startNode, int endNode, java.lang.String orth)
public boolean isIgn()
public boolean isWhitespace()
public java.lang.String getTag(Morfeusz morfeusz)
public java.lang.String getName(Morfeusz morfeusz)
public java.lang.String getLabelsAsString(Morfeusz morfeusz)
public void setStartNode(int value)
public int getStartNode()
public void setEndNode(int value)
public int getEndNode()
public void setOrth(java.lang.String value)
public java.lang.String getOrth()
public void setLemma(java.lang.String value)
public java.lang.String getLemma()
public void setTagId(int value)
public int getTagId()
public void setNameId(int value)
public int getNameId()
public void setLabelsId(int value)
public int getLabelsId()