Package de.julielab.jcore.ae.jpos.tagger
Class FeatureConfiguration
- java.lang.Object
-
- de.julielab.jcore.ae.jpos.tagger.FeatureConfiguration
-
public class FeatureConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description FeatureConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfeatureActive(Properties propDef, String propName)check whether a boolean feature exists and is set to "true"int[]getIntArray(Properties propDef, String propName)ArrayList<String>getLexiconKeys(Properties propDef)String[]getStringArray(Properties propDef, String propName)Gets the value of a property, splitting it into Stringsint[][]offsetConjFromConfig(String offset_conjunctions)extracts the offset conjunction information (feature creation horizon) from a String of the form (-1) (0) (1), (-1) (0) (1,2) or (-1) (0) (1 2)
-
-
-
Method Detail
-
featureActive
public boolean featureActive(Properties propDef, String propName)
check whether a boolean feature exists and is set to "true"- Parameters:
propDef-propName-- Returns:
-
getIntArray
public int[] getIntArray(Properties propDef, String propName)
-
offsetConjFromConfig
public int[][] offsetConjFromConfig(String offset_conjunctions)
extracts the offset conjunction information (feature creation horizon) from a String of the form (-1) (0) (1), (-1) (0) (1,2) or (-1) (0) (1 2)
-
getLexiconKeys
public ArrayList<String> getLexiconKeys(Properties propDef)
-
getStringArray
public String[] getStringArray(Properties propDef, String propName)
Gets the value of a property, splitting it into Strings- Parameters:
propDef- Property file to parsepropName- Property key to extract values for- Returns:
- String[], containing the value split at "," or null, if not found
-
-