Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- tt.setModel("/treetagger/models/english.par:iso8859-1");
- tt.setHandler(new TokenHandler<String>() {
- public void token(String token, String pos, String lemma) {
- System.out.println(token+"\t"+pos+"\t"+lemma);
- }
- });
- tt.process(asList(new String[] {"This", "is", "a", "test", "."}));
- }
- finally {
- tt.destroy();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement