![]() |
|
Think about Loose Coupling | |
PerlMonks |
Extracting keywords from HTMLby wfsp (Abbot) |
on Aug 21, 2005 at 12:41 UTC ( [id://485522]=perlquestion: print w/replies, xml ) | Need Help?? |
wfsp has asked for the wisdom of the Perl Monks concerning the following question:
I have adopted the following definition of a keyword:
Word
HTMLTo preserve the apostrophe ’ and ' are replaced with '.All other HTML entity punctuation is then removed and the HTML decoded. Apart from punctuation it is all Latin1 (I've checked it - at length!).
Update 2
At the moment the full app is run locally on a copy of the web site. It's generating 42k words but I'm working on the stop file to try and bring it down. If this turns out to be fairly stable I'm considering compiling the regexes outside of the loop. What do you reckon? winxp, activestate 5.8
Update:
Back to
Seekers of Perl Wisdom
|
|