edu.stanford.nlp.international.arabic
Class ArabicMorphoFeatureSpecification
java.lang.Object
edu.stanford.nlp.international.morph.MorphoFeatureSpecification
edu.stanford.nlp.international.arabic.ArabicMorphoFeatureSpecification
- All Implemented Interfaces:
- java.io.Serializable
public class ArabicMorphoFeatureSpecification
- extends MorphoFeatureSpecification
Extracts morphosyntactic features from BAMA/SAMA analyses. Compatible with both the
long tags in the ATB and the output of MADA.
- Author:
- Spence Green
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
defVals
public static final java.lang.String[] defVals
caseVals
public static final java.lang.String[] caseVals
genVals
public static final java.lang.String[] genVals
numVals
public static final java.lang.String[] numVals
perVals
public static final java.lang.String[] perVals
possVals
public static final java.lang.String[] possVals
voiceVals
public static final java.lang.String[] voiceVals
moodVals
public static final java.lang.String[] moodVals
tenseVals
public static final java.lang.String[] tenseVals
ArabicMorphoFeatureSpecification
public ArabicMorphoFeatureSpecification()
getValues
public java.util.List<java.lang.String> getValues(MorphoFeatureSpecification.MorphoFeatureType feat)
- Specified by:
getValues
in class MorphoFeatureSpecification
strToFeatures
public MorphoFeatures strToFeatures(java.lang.String spec)
- Parses a SAMA analysis into a MorphoFeatures spec.
TODO wsg: Presently, feature extraction only works for gold analyses
- Specified by:
strToFeatures
in class MorphoFeatureSpecification
main
public static void main(java.lang.String[] args)
- For debugging. Converts a set of long tags (BAMA analyses as in the ATB) to their morpho
feature specification. The input file should have one long tag per line.
- Parameters:
args
-
Stanford NLP Group