Package pl.sgjp.morfeusz
Class MorphInterpretation
- java.lang.Object
-
- pl.sgjp.morfeusz.MorphInterpretation
-
public class MorphInterpretation extends java.lang.ObjectThe 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 3Note that the word 'zostałem' got broken into 2 separate segments.
One MorphInterpretation instance describes one edge of this DAG.
-
-
Constructor Summary
Constructors Modifier Constructor Description MorphInterpretation()protectedMorphInterpretation(pl.sgjp.morfeusz._MorphInterpretation mi)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MorphInterpretationcreateIgn(int startNode, int endNode, java.lang.String orth, java.lang.String lemma)static MorphInterpretationcreateWhitespace(int startNode, int endNode, java.lang.String orth)intgetEndNode()java.util.Collection<java.lang.String>getLabels(Morfeusz morfeusz)java.lang.StringgetLabelsAsString(Morfeusz morfeusz)intgetLabelsId()java.lang.StringgetLemma()java.lang.StringgetName(Morfeusz morfeusz)intgetNameId()java.lang.StringgetOrth()intgetStartNode()java.lang.StringgetTag(Morfeusz morfeusz)intgetTagId()booleanisIgn()booleanisWhitespace()voidsetEndNode(int value)voidsetLabelsId(int value)voidsetLemma(java.lang.String value)voidsetNameId(int value)voidsetOrth(java.lang.String value)voidsetStartNode(int value)voidsetTagId(int value)
-
-
-
Method Detail
-
getLabels
public java.util.Collection<java.lang.String> getLabels(Morfeusz morfeusz)
-
createIgn
public static MorphInterpretation createIgn(int startNode, int endNode, java.lang.String orth, java.lang.String lemma)
-
createWhitespace
public static MorphInterpretation createWhitespace(int startNode, int endNode, java.lang.String orth)
-
isIgn
public boolean isIgn()
-
isWhitespace
public boolean isWhitespace()
-
getTag
public java.lang.String getTag(Morfeusz morfeusz)
-
getName
public java.lang.String getName(Morfeusz morfeusz)
-
getLabelsAsString
public java.lang.String getLabelsAsString(Morfeusz morfeusz)
-
setStartNode
public void setStartNode(int value)
-
getStartNode
public int getStartNode()
-
setEndNode
public void setEndNode(int value)
-
getEndNode
public int getEndNode()
-
setOrth
public void setOrth(java.lang.String value)
-
getOrth
public java.lang.String getOrth()
-
setLemma
public void setLemma(java.lang.String value)
-
getLemma
public java.lang.String getLemma()
-
setTagId
public void setTagId(int value)
-
getTagId
public int getTagId()
-
setNameId
public void setNameId(int value)
-
getNameId
public int getNameId()
-
setLabelsId
public void setLabelsId(int value)
-
getLabelsId
public int getLabelsId()
-
-