thanks.
it's much better than mine
4m30s vs. 14m(I suspect it's because all that hash look-ups I make use of)
but it's not putting the real words in the classes
it's putting the words modified by that regex wich
strips off unwanted characters.
altough there still may remain cases like:
when one writes this : アレの i るs オ i
wich at a closer look is "Ploiesti" wich is a city
in Romania but it is interpreted as Iasi(wich is another
city in Romania) just because the edit-distance is close
but I agree that this is a very special case
also Caracas is a city in Venezuela and it has edit-distance
very close to Caracal wich is a small city in Romania
Should I check first against a list of cities ?
I also found this
list of all cities,regions and countries in the world and I'm wondering if it would be a good
Ideea to parse those(they're csv I guess),get some tables in the
database with them and check against them when a new
entry is beein added ...
but that could take some time
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.