Live data from Hacker News

Using aligned word vectors for instant translations with Python and Rust

instantdomainsearch.com

1–10 of 38 posts

Re: Using aligned word vectors for instant translations with Python and Rust

#7
> For example, here are the results of translating the English word "hello":

> Language: fr, Translation: bonjours

> Language: fr, Translation: bonsoir

> Language: fr, Translation: salutations

> Language: it, Translation: buongiorno

> Language: it, Translation: buonanotte

> Language: fr, Translation: rebonjour

> Language: it, Translation: auguri

> Language: fr, Translation: bonjour,

> Language: it, Translation: buonasera

> Language: it, Translation: chiamatemi

Is it just me or these machine translations are worse than ... Google Translate?

Re: Using aligned word vectors for instant translations with Python and Rust

#8

> For example, here are the results of translating the English word "hello": > Language: fr, Translation: bonjours > Language: fr, Translation: bonsoir > Language: fr, Translation: salutations > Language: it, Translation: buongiorno > Language: it, Translation: buonanotte > Language: fr, Translation: rebonjour > Language: it, Translation: auguri > Language: fr, Translation: bonjour, > Language: it, Translation: buona…

Google Translate is state of the art, so I’m not sure why that would be surprising. That said, is there something wrong with the translations offered?

Re: Using aligned word vectors for instant translations with Python and Rust

#9
post #8

> For example, here are the results of translating the English word "hello": > Language: fr, Translation: bonjours > Language: fr, Translation: bonsoir > Language: fr, Translation: salutations > Language: it, Translation: buongiorno > Language: it, Translation: buonanotte > Language: fr, Translation: rebonjour > Language: it, Translation: auguri > Language: fr, Translation: bonjour, > Language: it, Translation: buona…

Google Translate is state of the art, so I’m not sure why that would be surprising. That said, is there something wrong with the translations offered?

> That said, is there something wrong with the translations offered?

I think in French hello = "bonjour" and hi = "salut"... not sure where "bonjours" and "salutations" came from.

Re: Using aligned word vectors for instant translations with Python and Rust

#10
post #3

We've released the underlying Rust implementation here: https://github.com/InstantDomain/instant-distance with Python bindings at https://pypi.org/project/instant-distance — feedback welcome!

I’ve not much to say on the actual lib, it seems great! However, don’t feel compelled to put all your rust code into a single lib.rs. You can split your work into several files and use ‘pub use’ and ‘mod’ in lib.rs to re-export your functions & types into a public API of your choosing.

cargo check and format time might also slightly improve!

Post reply on HN