Example usage for org.apache.lucene.analysis.ja.tokenattributes ReadingAttribute getPronunciation

List of usage examples for org.apache.lucene.analysis.ja.tokenattributes ReadingAttribute getPronunciation

Introduction

In this page you can find the example usage for org.apache.lucene.analysis.ja.tokenattributes ReadingAttribute getPronunciation.

Prototype

public String getPronunciation();

Source Link

Usage

From source file:com.github.riccardove.easyjasub.lucene.LuceneParser.java

License:Apache License

private void readReading(TokenStream tokenStream, LuceneToken token) {
    ReadingAttribute reading = tokenStream.getAttribute(ReadingAttribute.class);
    if (reading != null) {
        token.setPronunciation(reading.getPronunciation());
        token.setReading(reading.getReading());
    }/* w w w  .j a  va  2 s . c om*/
}