LanguageDetectorResult

public abstract class LanguageDetectorResult implements TaskResult


Represents the prediction results generated by LanguageDetector.

Summary

Public constructors

Public methods

abstract List<LanguagePrediction>

A list of language predictions from the LanguageDetector, ordered by descending probability.

List<LanguagePrediction>

This method is deprecated.

Use languages instead.

abstract long

Returns the timestamp that is associated with the task result object.

Public constructors

LanguageDetectorResult

public LanguageDetectorResult()

Public methods

languages

public abstract List<LanguagePrediction> languages()

A list of language predictions from the LanguageDetector, ordered by descending probability.

languagesAndScores

public List<LanguagePrediction> languagesAndScores()

Returns the list of language predictions.

timestampMs

public abstract long timestampMs()

Returns the timestamp that is associated with the task result object.