I'm trying to use Apache Lucene for tokenizing, and I am baffled at the process to obtain Tokens from a TokenStream
.
The worst part is that I'm looking at the comments in the JavaDocs that address my question.
Somehow, an AttributeSource
is supposed to be used, rather than Token
s. I'm totally at a loss.
Can anyone explain how to get token-like information from a TokenStream?