File tree 1 file changed +5
-5
lines changed
dkpro-tc-examples/src/test/java/org/dkpro/tc/examples/shallow
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ public void testTrainTest() throws Exception
87
87
assertEquals ("#ID=PREDICTION;GOLDSTANDARD;THRESHOLD" , lines .get (0 ));
88
88
assertEquals ("#labels 0=AP 1=AT 2=BEDZ 3=BEN 4=CC 5=DT 6=HVD 7=IN 8=JJ 9=MD 10=NN 11=NNS 12=NP 13=PPS 14=RB 15=TO 16=VB 17=VBD 18=VBN 19=WDT 20=pct" , lines .get (1 ));
89
89
// line 2 is a time-stamp
90
- assertTrue (lines .get (3 ).matches ("0_0_The =[0-9]+;[0-9]+;-1" ));
91
- assertTrue (lines .get (4 ).matches ("0_10_would =[0-9]+;[0-9]+;-1" ));
92
- assertTrue (lines .get (5 ).matches ("0_11_force =[0-9]+;[0-9]+;-1" ));
93
- assertTrue (lines .get (6 ).matches ("0_12_banks =[0-9]+;[0-9]+;-1" ));
94
- assertTrue (lines .get (7 ).matches ("0_13_, =[0-9]+;[0-9]+;-1" ));
90
+ assertTrue (lines .get (3 ).matches ("[a-zA-Z0-9_, \\ .]+ =[0-9]+;[0-9]+;-1" ));
91
+ assertTrue (lines .get (4 ).matches ("[a-zA-Z0-9_, \\ .]+ =[0-9]+;[0-9]+;-1" ));
92
+ assertTrue (lines .get (5 ).matches ("[a-zA-Z0-9_, \\ .]+ =[0-9]+;[0-9]+;-1" ));
93
+ assertTrue (lines .get (6 ).matches ("[a-zA-Z0-9_, \\ .]+ =[0-9]+;[0-9]+;-1" ));
94
+ assertTrue (lines .get (7 ).matches ("[a-zA-Z0-9_, \\ .]+ =[0-9]+;[0-9]+;-1" ));
95
95
}
96
96
97
97
}
You can’t perform that action at this time.
0 commit comments