Example usage for org.apache.lucene.analysis.th ThaiTokenizer DBBI_AVAILABLE

List of usage examples for org.apache.lucene.analysis.th ThaiTokenizer DBBI_AVAILABLE

Introduction

In this page you can find the example usage for org.apache.lucene.analysis.th ThaiTokenizer DBBI_AVAILABLE.

Prototype

boolean DBBI_AVAILABLE

To view the source code for org.apache.lucene.analysis.th ThaiTokenizer DBBI_AVAILABLE.

Click Source Link

Document

True if the JRE supports a working dictionary-based breakiterator for Thai.

Usage

From source file:org.carrot2.text.linguistic.lucene.ThaiTokenizerAdapter.java

License:Open Source License

/**
 * Check support for Thai./* www . j a v a 2 s.  c o m*/
 */
public static boolean platformSupportsThai() {
    try {
        return ThaiTokenizer.DBBI_AVAILABLE;
    } catch (Throwable e) {
        return false;
    }
}