|
18 | 18 | public class WordToSentenceProcessorTest extends TestCase {
|
19 | 19 |
|
20 | 20 | private static final TokenizerAnnotator onelineTokenizer =
|
21 |
| - new TokenizerAnnotator(false, PropertiesUtils.asProperties("tokenize.language", "en", "ssplit.isOneSentence", "true"), null); |
| 21 | + new TokenizerAnnotator(false, PropertiesUtils.asProperties("tokenize.language", "en", "tokenize.ssplit", "false"), null); |
22 | 22 | private static final TokenizerAnnotator udNL =
|
23 |
| - new TokenizerAnnotator(false, "en", "invertible,tokenizeNLs=true"); |
| 23 | + new TokenizerAnnotator(false, PropertiesUtils.asProperties("tokenize.language", "en", "tokenize.ssplit", "false"), "invertible,tokenizeNLs=true"); |
24 | 24 | private static final TokenizerAnnotator wsNL =
|
25 | 25 | new TokenizerAnnotator(false, PropertiesUtils.asProperties("tokenize.whitespace", "true", "invertible", "true", "tokenizeNLs", "true"));
|
26 | 26 |
|
@@ -208,9 +208,8 @@ public void testBlankLines() {
|
208 | 208 | public void testExclamationPoint() {
|
209 | 209 | Annotation annotation = new Annotation("Foo!!");
|
210 | 210 | onelineTokenizer.annotate(annotation);
|
211 |
| - // the TokenizerAnnotator will add ids by default |
212 | 211 | List<CoreLabel> list = annotation.get(CoreAnnotations.TokensAnnotation.class);
|
213 |
| - assertEquals("Wrong double bang", "[Foo-1, !!-2]", list.toString()); |
| 212 | + assertEquals("Wrong double bang", "[Foo, !!]", list.toString()); |
214 | 213 | }
|
215 | 214 |
|
216 | 215 | public void testChinese() {
|
|
0 commit comments