Class RecognitionWord

ru.yandex.speechkit

public  class  RecognitionWord 

Word or phrase that is part of the RecognitionHypothesis hypothesis.

This is the minimal object that a confidence score is shown for. This score can be used to determine poorly recognized fragments.

Constructors

RecognitionWord(String text, float confidence)

Creates an object of the RecognitionWord class.

Methods

floatgetConfidence()

Returns the recognition confidence score.

StringgetText()

Returns a word or phrase.

StringtoString()

Constructor Detail

RecognitionWord

public RecognitionWord (String text, float confidence)

Creates an object of the RecognitionWord class.

Parameters:
text

A word or phrase.

confidence

Confidence score of the recognition hypothesis.

Method Detail

getConfidence

public float getConfidence ()

Returns the recognition confidence score.

The confidence score is a fractional number between 0 and 1 estimating the measure of confidence in the recognition result (1 indicates the highest level of confidence).

Returns:

Recognition confidence score.

getText

public String getText ()

Returns a word or phrase.

Returns:

A word or phrase.

toString

public String toString ()