Class MorphIdentification
java.lang.Object
|
+--MorphIdentification
- public class MorphIdentification
- extends java.lang.Object
Represents a set of morphological identifications (e.g.,
nom sg masc for forms in a language.
- Version:
- $02/11/17 04:48:58 mdh$
- Author:
- Malcolm D. Hyman
|
Inner Class Summary |
class |
MorphIdentification.Triple
Models a triple consisting of a basic form (lemma), a variant, and
a morphological identification tag. |
|
Method Summary |
void |
add(java.lang.String basic,
java.lang.String variant,
java.lang.String ident,
java.lang.String key)
Associates an identification string with a variant form of a
lemma, citation form, or whatever you want to call it. |
java.lang.String[] |
get(java.lang.String basic,
java.lang.String variant)
Returns the morphological identifications for the variant form of a lemma. |
java.util.List |
getAllIdents()
Returns the the set of all used morphological identification labels. |
MorphIdentification.Triple |
getByKey(java.lang.String key)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MorphIdentification
public MorphIdentification(java.lang.String lang)
add
public void add(java.lang.String basic,
java.lang.String variant,
java.lang.String ident,
java.lang.String key)
- Associates an identification string with a variant form of a
lemma, citation form, or whatever you want to call it.
- Parameters:
basic - the basic form (a/k/a lemma, citation form)variant - an inflected form of basicident - a morphological identificationkey - key identifier for the triple
get
public java.lang.String[] get(java.lang.String basic,
java.lang.String variant)
- Returns the morphological identifications for the variant form of a lemma.
- Parameters:
basic - the basic form (a/k/a lemma, citation form)variant - an inflected form of basic- Returns:
- array of morphological identifications
getByKey
public MorphIdentification.Triple getByKey(java.lang.String key)
getAllIdents
public java.util.List getAllIdents()
- Returns the the set of all used morphological identification labels.
- Returns:
- list of all morphological identifications