473,387 Members | 1,486 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
2 1524
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chris | last post by:
One nice thing about Perl that is helpful when tallying things up by type is that if you increment a hash key and the key does not exist, Perl puts a one there. So you can have code that does...
26
by: Weiguang Shi | last post by:
Hi, With awk, I can do something like $ echo 'hello' |awk '{a++}END{for(i in a)print i, a}' That is, a was not there but allocated and initialized to zero upon reference. With Python, I...
57
by: Egor Bolonev | last post by:
why functions created with lambda forms cannot contain statements? how to get unnamed function with statements?
125
by: Raymond Hettinger | last post by:
I would like to get everyone's thoughts on two new dictionary methods: def count(self, value, qty=1): try: self += qty except KeyError: self = qty def appendlist(self, key, *values): try:
9
by: Tim N. van der Leeuw | last post by:
Hi, I'd like to remove keys from a dictionary, which are not found in a specific set. So it's kind of an intersection-operation. I can create a new dictionary, or a loop over all keys and test...
5
by: TWiSTeD ViBE | last post by:
Hi, While pouring over some code I've discovered a previous developer heavily uses the "dictionary" object. Whilst I see some of the advantages of using this system It's something I've not used...
14
by: vatamane | last post by:
This has been bothering me for a while. Just want to find out if it just me or perhaps others have thought of this too: Why shouldn't the keyset of a dictionary be represented as a set instead of a...
24
by: kdotsky | last post by:
Hello, I am using some very large dictionaries with keys that are long strings (urls). For a large dictionary these keys start to take up a significant amount of memory. I do not need access to...
7
by: Andreas Prilop | last post by:
I'm looking for an appropriate markup for a dictionary/glossary. A dummy example is English German eight acht five fünf four vier nine neun one eins seven ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.