PhP Mysql Text Search and Replace Script

Suoritettu Julkaistu Sep 17, 2011 Maksettu toimituksen yhteydessä
Suoritettu Maksettu toimituksen yhteydessä

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 Tietojärjestelmäarkkitehtuuri

Projektin tunnus: #1211971

Tietoa projektista

13 ehdotusta Etäprojekti Aktiivinen Sep 25, 2011

Myönnetty käyttäjälle:

richb38

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

$120 USD 3 päivässä
(4 Arvostelua)
4.3

13 freelanceria on tarjonnut keskimäärin $185 tähän työhön

MuktoSoftware

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

$200 USD 2 päivässä
(449 arvostelua)
7.5
srinichal

I can deliver the python script

$250 USD 5 päivässä
(97 arvostelua)
7.0
webn

It seems a nice project to work.

$180 USD 2 päivässä
(87 arvostelua)
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 5 päivässä
(51 arvostelua)
5.9
Max01

hi sir i can do it as you need it.

$250 USD 0 päivässä
(81 arvostelua)
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 2 päivässä
(24 arvostelua)
5.5
kommandant

check your pm

$250 USD 6 päivässä
(23 arvostelua)
4.8
phpopensource

Please see bid details in private message.

$120 USD 1 päivässä
(16 arvostelua)
4.3
balagesoft

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

$150 USD 1 päivässä
(6 arvostelua)
4.0
dariomp

Hello, see my private message for details.

$150 USD 3 päivässä
(0 arvostelua)
0.0
Shargon

im interesting, but read my pm

$150 USD 5 päivässä
(0 arvostelua)
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. Lisää

$250 USD 5 päivässä
(0 arvostelua)
0.0