@Test public void testAsString() { Locale.setDefault(Locale.ENGLISH); FeatureVectorEncoder enc = new TextValueEncoder("text"); assertEquals( "[text:test1:1.0000, text:and:1.0000, text:more:1.0000]", enc.asString("test1 and more")); }
@Test public void testAsString() { Locale.setDefault(Locale.ENGLISH); FeatureVectorEncoder enc = new TextValueEncoder("text"); assertEquals( "[text:test1:1.0000, text:and:1.0000, text:more:1.0000]", enc.asString("test1 and more")); }