Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
1. How I compare from one file to another, by lines?, or I have to store all the lines in an array? 2. After I did match (true) with the patterns (rules), How I will retrieve just the value of the tag (WP ->Who...) and display them?, Do I need a hash table; until now I have not used any king of arrays, just files. Thanks. Tita#while(<in>) { while ($question =~ /([a-zA-Z0-9.-_]+)\/([A-Z]+)/g){ $word = $1; $tag = $2; print OUT "$tag"."/"; print "$word"."/"; } print OUT "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How will I retrieve values from a POS-tagged question
by djantzen (Priest) on Jul 26, 2002 at 17:33 UTC | |
by Anonymous Monk on Jul 26, 2002 at 20:56 UTC | |
by djantzen (Priest) on Jul 26, 2002 at 22:42 UTC | |
|
Re: How will I retrieve values from a POS-tagged question
by Tita (Initiate) on Jul 26, 2002 at 21:20 UTC |