Natural Language Processing

Speech recognition consists of two parts. The first consists of recognizing words. The second part consists of extracting meaning from the words, i.e., "making sense."

REGULAR EXPRESSIONS

The Regular Expression or RegEx is used for parsing and manipulating text. It is especially useful for extracting meaning in speech recognition systems.


 Regular Expression  Example                Notes  
 /Sheep/           "Sheep"                      
 /[Ss]heep/        "a sheep named Sheep"     
 [A-Z]             an uppercase leetter      
 /[123456789]/     any digit                 
 /[^Ss]/           neither "S" nor "s"       carat is first char after "["
 /[^A-Z]/          not an upper-case letter  carat is first char after "["
 /[^\.]            not a period              carat is first char after "["
 /[a^]/            "a" or "^"
 /A^b/             the pattern "A^b" 
 /dogs?/           "dog" or "dogs"
 dogs*             "dog" or "dogsssss"       zero or more of the preceding char Kleene *, pronounced "cleany star"