473,769 Members | 5,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1543
d
"Berimor" <be*****@berimo r.ber> wrote in message
news:ops28nuwtn r1c5ad@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*******@attgl obal.net
=============== ===
Jan 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
414
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 something like this: my %thingCounts; foreach my $thing(<file>) { $thingCounts{$thing}++; }
26
2858
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 got >>> b={}
57
3616
by: Egor Bolonev | last post by:
why functions created with lambda forms cannot contain statements? how to get unnamed function with statements?
125
7223
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
3300
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 them for set-membership, but I was wondering if there was a smart way to express this in 1 or 2 concise statements that I'm not aware of. So are there smarter ways to get the intersection of dictionary and set
5
2094
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 myself so am not sure of the limitations. We are about to widen the scope of the website it's being used on to a WorldWide system - greatly increasing the number of users that will be using the website.
14
3466
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 list? I know that sets were introduced a lot later and lists/dictionaries were used instead but I think "the only correct way" now is for the dictionary keys and values to be sets. Presently {1:0,2:0,3:0}.keys() will produce but it could also...
24
4309
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 these keys -- I only need to be able to retrieve the value associated with a certain key, so I do not want to have the keys stored in memory. Could I just hash() the url strings first and use the resulting integer as the key? I think what I'm...
7
2650
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 sieben
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10050
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.