in reply to reading dictionary file -> morphological analyser
getting the value by a given key is done by:#!c:/perl/bin/perl.exe print "Content-type: text/html\n\n"; use BerkeleyDB; my $filename = "dict"; my $db = new BerkeleyDB::Hash -Filename => $filename, -Flags => DB_CREATE or die "Cannot open file $filename: $! $BerkeleyDB::Error\n";
and works very fast. so, that DICTE filehandle code, instead of throwing values to a %dict hash, it throws values to a database by $db->db_put($english,$lang). this database creation has to be done only when the dictionary changes, but it's very slow. so, now the question is: is there a command-line Windows program that can convert flat-file databases do Berkeley DB databases? thank you in advance.$db->db_get("word", $lang); #the word is stored in the $lang variable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: reading dictionary file -> morphological analyser
by mr_mischief (Monsignor) on Jul 19, 2007 at 00:30 UTC |