public static class ReadingProcessor.ReadingResult extends Object
| Modifier and Type | Method and Description |
|---|---|
SortedMap<Integer,Reading> |
getBaseReadings()
Gets the base readings resulting from processing of the result's
text.
Note that although the returned data is isolated from any changes to the ReadingProcessor, it is not copied internally, and any
changes you make to the returned data will be reflected by
subsequent calls to this method on the same ReadingProcessor.ReadingResult object |
SortedMap<Integer,Reading> |
getDisplayReadings()
Gets the visible reading fragments resulting from processing of the
result's text.
Note that although the returned data is isolated from any changes to the ReadingProcessor, it is not copied internally, and any
changes you make to the returned data will be reflected by
subsequent calls to this method on the same ReadingProcessor.ReadingResult object |
List<Token> |
getPossibleTokens(int position)
Searches for possible tokens starting at the given position within the
result's text
|
List<Token> |
getTokens()
Gets the tokens resulting from analysis of the result's text.
Note that although the returned data is isolated from any changes to the ReadingProcessor, it is not copied internally, and any
changes you make to the returned data will be reflected by
subsequent calls to this method on the same ReadingProcessor.ReadingResult object |
BitSet |
getVisibleTokens()
Gets the set of tokens that contain at least one visible reading.
|
public List<Token> getTokens()
ReadingProcessor, it is not copied internally, and any
changes you make to the returned data will be reflected by
subsequent calls to this method on the same ReadingProcessor.ReadingResult objectpublic SortedMap<Integer,Reading> getBaseReadings()
ReadingProcessor, it is not copied internally, and any
changes you make to the returned data will be reflected by
subsequent calls to this method on the same ReadingProcessor.ReadingResult objectpublic SortedMap<Integer,Reading> getDisplayReadings()
ReadingProcessor, it is not copied internally, and any
changes you make to the returned data will be reflected by
subsequent calls to this method on the same ReadingProcessor.ReadingResult objectpublic BitSet getVisibleTokens()
true
at the Token's index.ReadingProcessor, it is not copied internally, and any
changes you make to the returned data will be reflected by
subsequent calls to this method on the same ReadingProcessor.ReadingResult object