NAME

Text::SimSearch - inverted index for similarity search

SYNOPSIS

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 );

DESCRIPTION

Text::SimSearch is a on-memory inverted index for similarity search.

AUTHOR

Takeshi Miki <miki@cpan.org>

SEE ALSO

LICENSE

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