PrePAN

Sign in to PrePAN

Translation::Memory translation memory handler

Author
benkasminbullock@github
Date
URL
Status
In Review
Good

Synopsis

use Translation::Memory;

my $memory = Translation::Memory->new (
     source_language => 'en',
     store => 'memory.db',
     type => 'sqlite',
);

my @segs = break ($text);
my %matches = $memory->find_matches (\@segs);

Description

Translation memory handler to deal with storing, retrieving and searching translated text.

Interface not supplied, can be used as backend with anything, including webby-json/ajax system or Micrsofot Word via OLE system or anything else whatsoever.

Just an idea at present, no proper name, no code, wondering if such a module exists in some obscure place on cpan.

Dependency on some kind of edit distance searcher function.

This is not a translation system, it is translation memory system. There is an extensive article on Translation Memory on Wikipedia, please refer to it if you are not sure what this means.

Maybe use SQLite for the memory database (?).

Comments

anonymouse
Anonymous
why not just extend Lingua::Translate?
@Anonymous: this is for translation memory.
As I understand Translation Memory, this type of module requires searching for *non-exact* matches against a database. While relational databases sometimes have full-text search features perhaps a proper search engine module al-la Lucy (http://search.cpan.org/~logie/Lucy-0.3.1/lib/Lucy.pod) Lucy would be a better fit in combination with SQLite?
@mlawren: thanks I will look at Lucy. The lookup part of translation memory is very intensive searching using edit distance algorithms.

Please sign up to post a review.