public class CoNLLUUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CoNLLUUtils.DepIndexComparator |
static class |
CoNLLUUtils.FeatureNameComparator |
Constructor and Description |
---|
CoNLLUUtils() |
Modifier and Type | Method and Description |
---|---|
static HashMap<String,String> |
parseExtraDeps(String extraDepsString)
Parses the value of the extra dependencies column in a CoNLL-U file
and returns them in a HashMap with the governor indices as keys
and the relation names as values.
|
static HashMap<String,String> |
parseFeatures(String featureString)
Parses the value of the feature column in a CoNLL-U file
and returns them in a HashMap with the feature names as keys
and the feature values as values.
|
static String |
toExtraDepsString(HashMap<String,String> extraDeps)
Converts an extra dependencies hash map to a string to be used
in a CoNLL-U file.
|
static String |
toFeatureString(HashMap<String,String> features)
Converts a feature HashMap to a feature string to be used
in a CoNLL-U file.
|
public static HashMap<String,String> parseFeatures(String featureString)
featureString
- public static String toFeatureString(HashMap<String,String> features)
public static HashMap<String,String> parseExtraDeps(String extraDepsString)
extraDepsString
-