Bio::ExtractNE::MakeDict 1.06 review
DownloadBio::ExtractNE::MakeDict is a package for creating dictionary. FUNCTIONS mkdict($input_file, $output_dictfile) This function c
|
|
Bio::ExtractNE::MakeDict is a package for creating dictionary.
FUNCTIONS
mkdict($input_file, $output_dictfile)
This function creates named-entity dictionary. Note that $input_file is a hash. Currently, only SwissProt data is supported.
mkdict({ sprot_file => "sprot", } => "sprot.dict");
mkcwdict($input_file, $output_dictfile, $prebuilt_dictfile)
This function creates the common word dictionary.
mkcwdict("/usr/share/dict/words" => "common_words.dict", "dict/sprot.dict");
mkcwdict(
[ "/usr/share/dict/words", "med.txt",],
"common_words.dict", # output common word dictionary
"dict/sprot.dict" # pre-built dictionary file
);
The first argument can be a scalar or an arrayref.
Please note that this function can only be used if you have your dictionary built.
NOTE
The two functions are both destructive. Previously built dictionary will be erased before building a new one.
Requirements:
Perl
Bio::ExtractNE::MakeDict 1.06 keywords