Skip to content

Commit 847baaa

Browse files
committed
allow any length for text_LG suffix
1 parent 11d43f1 commit 847baaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/orange/labs/conllparser/ConllSentence.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private void parse(List<AbstractMap.SimpleEntry<Integer, String>> conlllines) th
181181
hasEnhancedDeps = false;
182182
//Set<Annotation> lastAnnots = null;
183183
List<String> lastnonstandardinfo = null;
184-
Pattern translationFields = Pattern.compile("^# text_([a-z]{2,3}) *= *(.*)$");
184+
Pattern translationFields = Pattern.compile("^# text_([a-z]{2,}) *= *(.*)$");
185185

186186
for (AbstractMap.SimpleEntry<Integer, String> cline : conlllines) {
187187
String line = cline.getValue();

0 commit comments

Comments
 (0)