467,122 Members | 1,292 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,122 developers. It's quick & easy.

Dictionary principle

Hey guys,

has anybody scripted online translators?
I got the task to build one but it should traslate big pieces of text at
once - up to 5000 words!!! Traslation is simple - just words replacing.
How to create dictionary correct - DB based or file with plain text? I'm
searching the way to gain as much speed as possible. I realise - (not
sure) that most convinient would be to read all dictionary into the hash
(native => alien) and then change the words on-fly. But what if the
dictionary is too big to fit server's RAM? So i'm not sure about this
method.

Any ideas?


--
Exact Meta Search | Major Search Engine http://exactsearcher.com
Web Design Essex | Multimedia | Printing http://nextwave.co.uk
Jan 12 '06 #1
  • viewed: 1320
Share:
2 Replies
d
"Berimor" <be*****@berimor.ber> wrote in message
news:ops28nuwtnr1c5ad@lancer...
Hey guys,

has anybody scripted online translators?
I got the task to build one but it should traslate big pieces of text at
once - up to 5000 words!!! Traslation is simple - just words replacing.
How to create dictionary correct - DB based or file with plain text? I'm
searching the way to gain as much speed as possible. I realise - (not
sure) that most convinient would be to read all dictionary into the hash
(native => alien) and then change the words on-fly. But what if the
dictionary is too big to fit server's RAM? So i'm not sure about this
method.

Any ideas?
Do some tests to see exactly how large the dictionary is, as that will be
the deciding factor when it comes to where to store it :)

--
Exact Meta Search | Major Search Engine http://exactsearcher.com
Web Design Essex | Multimedia | Printing http://nextwave.co.uk

Jan 12 '06 #2
Berimor wrote:
Hey guys,

has anybody scripted online translators?
I got the task to build one but it should traslate big pieces of text
at once - up to 5000 words!!! Traslation is simple - just words replacing.
How to create dictionary correct - DB based or file with plain text?
I'm searching the way to gain as much speed as possible. I realise -
(not sure) that most convinient would be to read all dictionary into
the hash (native => alien) and then change the words on-fly. But what
if the dictionary is too big to fit server's RAM? So i'm not sure about
this method.

Any ideas?


No, translation is NOT simple. It's a lot more than just word
replacement. You need to look at the syntax rules, idioms, and even the
different definitions for a single word.

In fact, there's so much to it even the best programmers haven't come up
with a decent translator after years of trying and improving.

For instance - translating your text above to French and back to English
gives:

whoever has the translators in line préétablirs? I obtained to give the
responsability it to build one but him if the traslate of great pieces
of text immediately - up to 5000 words! ! ! Traslation is simple -
replacement right of words. How to create the correct dictionary - dB
based or file with the flat text? I seek the manner of gaining speed
like possible as much. I realize - (nonsure) which convinient are to
read all the dictionary in parasitic information (native = foreign) and
to change the words then flies over. But what if the dictionary is too
large to adapt the RAM of the waiter? Thus I am not sure about this method.
Other languages are worse.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jan 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Chris | last post: by
26 posts views Thread by Weiguang Shi | last post: by
57 posts views Thread by Egor Bolonev | last post: by
125 posts views Thread by Raymond Hettinger | last post: by
9 posts views Thread by Tim N. van der Leeuw | last post: by
5 posts views Thread by TWiSTeD ViBE | last post: by
24 posts views Thread by kdotsky@gmail.com | last post: by
7 posts views Thread by Andreas Prilop | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.