Tokenizer { public void readModel(final File file) throws IOException, FileNotFoundException, ClassNotFoundException { final FileInputStream fis = new FileInputStream(file); readModel(fis); } Tokenizer(); CRF getModel(); ArrayList<Unit> predict(final String sentence); void readModel(final File file); void readModel(InputStream is);  }
@Test public void testReadModel() throws Exception { final Tokenizer tokenizer = new Tokenizer(); tokenizer.readModel(new File(FILENAME_MODEL)); assertNotNull(tokenizer.model); }