perl - Extracting sentences by matching dictionary words -


i have lot of strings contain words or phrases of interest. example: 'i cherry blossoms when spring here , love click photos same '

contains words/phrases of interest "cherry blossoms", "love" , "click ".

my job find out sentences words/phrases of interest .and if possible score each string strings composed of 2 or more words/phrases better score strings have lower count.

is job recursive descent parsing, or there faster way doing this? task, willing trade off little speed accuracy.

my dictionary going consist of 250,000 words. can store them on disk in fashion want. there kind of format (perhaps db file format) lend kind of lookups going need doing?

is there cpan module fit me? or there simple solution .

thanks

search natural language processing (nlp) on cpan; e.g. lingua::en::*

also search 'bag of words' online/journals intro field.


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -