www.pudn.com > sphinx_recipe.zip > WordsToDictionary.pl
# Converts a word list into a dictionary by looking up the words
# in a provided other superset dictionary.
#
# It should output every variant that was in the dictionary.
#
# Outputs !!UNKNOWN!! for any words we couldn't find in the superset
# dictionary
#
# Optionally can add sentence start and end symbols to top.
#
# Also checks to be sure that variants all have (#) notation otherwise
# the sphinx2 decoder will crash.
#
# Copyright 2006 by Keith Vertanen
use strict;
if ( @ARGV < 3 )
{
print "$0