Class LanguageDetection

All Implemented Interfaces:
Serializable

public class LanguageDetection extends Attribute implements Serializable
The results of running language detection on a region of text. The results are composed as a list of LanguageDetection.DetectionResult, to reflect the multiple alternatives produced by language detectors.
See Also:
  • Constructor Details

  • Method Details

    • getDetectionResults

      public List<LanguageDetection.DetectionResult> getDetectionResults()
      Returns the detection results, in order from best to worst confidence.
      Returns:
      the detection results, in order from best to worst confidence
    • toStringHelper

      protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()
      Overrides:
      toStringHelper in class Attribute