use of io.github.vocabhunter.analysis.model.Analyser in project VocabHunter by VocabHunter.
the class AnalysisSystemTest method setUpClass.
@BeforeClass
public static void setUpClass() throws Exception {
Analyser analyser = new SimpleAnalyser();
FileStreamer target = new FileStreamer(analyser);
URL resource = FileStreamerTest.class.getResource("/" + INPUT_DOCUMENT);
Path file = Paths.get(resource.toURI());
EnrichedSessionState enrichedSession = target.createNewSession(file);
SessionState sessionState = enrichedSession.getState();
words = sessionState.getOrderedUses();
}
Aggregations