daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Jun 25th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. StringReader testReader = new StringReader("C.F.A. C.F.A word");
  2. StandardAnalyzer analyzer = new StandardAnalyzer();
  3. TokenStream tokenStream = analyzer.tokenStream("title", testReader);
  4. System.out.println(tokenStream.next());
  5. System.out.println(tokenStream.next());
  6. System.out.println(tokenStream.next());
  7.    
  8. (cfa,0,6,type=<ACRONYM>)
  9. (c.f.a,7,12,type=<HOST>)
  10. (word,13,17,type=<ALPHANUM>)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top