PhP Mysql Text Search and Replace Script

Completed Posted Sep 17, 2011 Paid on delivery
Completed Paid on delivery

I need a php or python script that does the following:

1) Accepts a URL encoded block of text through a POST command

2) Use multiple / parallel threads to query the database and replaces each word in the text with synonyms from the database (if the word is in the database). The search word is always SUBKEY 0, and the replace key is a randomly selected number with the same KEY value.

The database is set up like this:

ID WORD KEY SUBKEY

0 wind 1 0

1 breeze 1 1

3 gale 1 2

4 draft 1 3

The database has about 2.5 million entries, so I want to be able to send a text article of about 1000 words and have the article searched and replaced as fast as possible. I do not want the script to just explode the text into an array and then sequentially search and replace each word. That takes far too long.

If there are no matches in the database, the words are ignored.

The final output of the script is the text with the replaced words from the database. The original text punctuation and any html tags should be preserved.

MySQL PHP Python Software Architecture

Project ID: #1211971

About the project

13 proposals Remote project Active Sep 25, 2011

Awarded to:

richb38

Hi. I can implement this synonym replacement function for you.

$120 USD in 3 days
(4 Reviews)
4.3

13 freelancers are bidding on average $185 for this job

MuktoSoftware

I am interested to work in this project. But I have some comments. Please check inbox. Thanks.

$200 USD in 2 days
(449 Reviews)
7.5
srinichal

I can deliver the python script

$250 USD in 5 days
(97 Reviews)
7.0
webn

It seems a nice project to work.

$180 USD in 2 days
(87 Reviews)
6.4
adaschevici

Hello. I am an experienced python developer. I can handle this task as i have done variosu tasks in text parsing. Check pmb for questions. Thanks.

$180 USD in 5 days
(51 Reviews)
5.9
Max01

hi sir i can do it as you need it.

$250 USD in 0 days
(81 Reviews)
5.7
rfedorov

Hello, I'd like to work with you on this project. Please check kindly the private message for more info and a small demo on PHP multi thread. Regards, Roman

$150 USD in 2 days
(24 Reviews)
5.5
kommandant

check your pm

$250 USD in 6 days
(23 Reviews)
4.8
phpopensource

Please see bid details in private message.

$120 USD in 1 day
(16 Reviews)
4.3
balagesoft

I have a parallel algorithm to this. please check my pm to more detials

$150 USD in 1 day
(6 Reviews)
4.0
dariomp

Hello, see my private message for details.

$150 USD in 3 days
(0 Reviews)
0.0
Shargon

im interesting, but read my pm

$150 USD in 5 days
(0 Reviews)
0.0
krol33

I am a developer with 5 years of experience in several J2EE projets With a master in image processing, developing project with pattern recognition, using several image procesing libraries. Also I know PHP language. More

$250 USD in 5 days
(0 Reviews)
0.0