NAME

Bio::ExtractNE::MakeDict - 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.

COPYRIGHT AND LICENSE

Copyright (C) 2004 by Yung-chung Lin (a.k.a. xern) <xern@cpan.org>

This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself