TrainingParameters.defaultParams(), factory);
}
@Test
public void testPOSTaggerWithCustomFactory() throws IOException {
DummyPOSDictionary posDict = new DummyPOSDictionary(
POSDictionary.create(POSDictionaryTest.class
.getResourceAsStream("TagDictionaryCaseSensitive.xml")));
Dictionary dic = POSTaggerME.buildNGramDictionary(createSampleStream(), 0);
POSModel posModel = trainPOSModel(ModelType.MAXENT,