Partager via


ALT_BREAKS Enumeration

ALT_BREAKS Enumeration

Defines constant values that specify how to create alternates from a best result string.

Declaration

[C++]

typedef enum enumALT_BREAKS
{
  ALT_BREAKS_SAME = 0,
  ALT_BREAKS_UNIQUE = 1,
  ALT_BREAKS_FULL = 2
} ALT_BREAKS;

Members

Name Description
ALT_BREAKS_SAME Alternates must use the same segment breaks as the best result string. For example, if you ask for an alternate list for the best result string of "together", the recognizer may return "tunisia" but not "to get her". This is because "to get her" involves different segment breaks.
ALT_BREAKS_UNIQUE Alternates must have different segment breaks than the best result string. Only one such alternate is returned. For example, alternates for the best result string of "to get her" may include "to gather" and "together". However, "to got her" is not returned because it has the same segment break as "to get her".
ALT_BREAKS_FULL Top-rated alternates are returned regardless of segment breaks. Thus "together" may return "tunisia", "to get her", and "to gather" among others. The alternates are returned in order of their rating, from best to worst.

Remarks

Check the dwRecoCapabilityFlags member of the RECO_ATTRS structure to ensure the recognizer supports different alternate breaks.