Skip to content

Commit 0f901cf

Browse files
committed
Use a LinkedHashMap to keep the feature annotations in the order they are created
1 parent eb4d58d commit 0f901cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/edu/stanford/nlp/trees/ud/CoNLLUUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class CoNLLUUtils {
1818
* @return A HashMap<String,String> with the feature values.
1919
*/
2020
public static HashMap<String,String> parseFeatures(String featureString) {
21-
HashMap<String, String> features = new HashMap<>();
21+
HashMap<String, String> features = new LinkedHashMap<>();
2222
if (! featureString.equals("_")) {
2323
String[] featValPairs = featureString.split("\\|");
2424
for (String p : featValPairs) {

0 commit comments

Comments
 (0)