Text::SimSearch - inverted index for similarity search
use Text::SimSearch; my $indexer = Text::SimSearch->new; $indexer->add_item_from_file("source_file.tsv"); $indexer->save("save.bin"); $indexer->load("save.bin"); my $query_vector = { BAG_OF_WORDS }; my $number = 100; # retrieve num my $result = $indexer->search( $query_vector, $number );
Text::SimSearch is a on-memory inverted index for similarity search.
Takeshi Miki <miki@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Text::SimSearch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::SimSearch
CPAN shell
perl -MCPAN -e shell install Text::SimSearch
For more information on module installation, please visit the detailed CPAN module installation guide.