Index   Commented   Search   About

Word Lists

A word list acts as a broad alphabet set. A list consists of valid words that can influence the confidence a recognizer places in a guess. After guessing at a word (or phrase), a recognizer can search for the guess in one or more word lists. Locating a guess in a word list helps verify the validity of the guess.

A word list can consist of a small group of words permanently stored in the recognizer's data segment. Often, however, the words reside in an accompanying file that the recognizer reads as required. A word list file should be in standard ANSI text format, one word per line, with each line ending in a carriage return and linefeed. This allows the user to emend the files, if necessary, with a text editor.

A recognizer that uses word lists should export the ReadHWL and WriteHWL functions. These functions read and write standard word list files, enabling an application to move words directly between a file and an HWL object.

The table below lists the exported functions for a recognizer that uses word lists.

Function
Description
AddWordsHWL
Adds a specified collection of words to an existing word list in memory.
CreateHWL
Creates a word list in memory, either empty or containing a given list of words.
DestroyHWL
Destroys a word list, invalidating the handle.
GetWordlistCoercionHRC
Retrieves the current degree of influence a word list or the system dictionary has on the confidence level of a guess.
GetWordlistHRC
Retrieves a word list from the HRC object.
ReadHWL
Reads from a file into an empty word list. The words must be in ANSI text format, one word per line, each line ending with a carriage return and linefeed.
SetWordlistCoercionHRC
Specifies the influence a word list or the system dictionary should exert on the confidence level of a guess.
SetWordlistHRC
Sets a word list into the HRC object.
WriteHWL
Writes from a word list to a file. The words are written as ANSI text, one word per line.

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun