Hi Hector,

I wrote a patch for Apertium which appends to the output of each module some
debug information which can be used to construct the alignment information
you request. It is still a very experimental code and it may not work in
some cases. It is attached to this email. I hope you find it useful.

Regards,
Víctor M. Sánchez-Cartagena

2011/7/19 Hector Villafuerte <[email protected]>

> Hello everybody,
> Have you guys noticed how Google Translate highlights words in the
> source and target language when you hover over them? Here's an
> example:
>
> http://translate.google.com/#es|en|Quiero%20una%20manzana%20roja.%0A
>
> I wonder if Apertium can show that sort of input-output alignment...
> here's an idea of expected behavior:
>
> $ echo "Quiero una manzana roja." | apertium es-en
> I want a red apple.
>
> "[i1]Quiero [i2]una [i3]manzana [i4]roja."
> "[o1]I [o2]want [o3]a [o4]red [o5]apple."
>
> Alignment:
> i1 -> o1, o2
> i2 -> o3
> i3 -> o5
> i4 -> o4
>
> Is this possible? Thanks for your help!
> -- Hector
>
>
> ------------------------------------------------------------------------------
> Magic Quadrant for Content-Aware Data Loss Prevention
> Research study explores the data loss prevention market. Includes in-depth
> analysis on the changes within the DLP market, and the criteria used to
> evaluate the strengths and weaknesses of these DLP solutions.
> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> _______________________________________________
> Apertium-stuff mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>

Attachment: ApertiumAlignments.tar.gz
Description: GNU Zip compressed data

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to