Robert Kerry wrote:
I want to use Perl to extract keywords from plaintext, don't know
whether there are some exsiting package / algorithm for doing that?
Thank you.
Regards,
Robert.
If you are attempting to "extract" keywords as a search engine might
(i.e. find all words of substance), you might s
Hi Robert
Am Montag, 25. April 2005 01.45 schrieb Robert Kerry:
> I want to use Perl to extract keywords from plaintext, don't know
> whether there are some exsiting package / algorithm for doing that?
> Thank you.
In the case you know the keywords
(I suppose so, otherwise you would search word
Robert:
An example is below.
#!/usr/bin/perl -w
open(FILE,"/etc/passwd") || die "Cannot open file: $!";
while ( )
{
if( /Ezra/ ) #I'm searching for strings with the word Ezra.
{
print $_; # Now I'm printing lines with the name Ezra
}
}
close(FILE);
On 4/24/