> Assuming that you know how to properly tokenize words, then
Well, till now I was assured I can, but last time...
Follow code work well only for internally defined string and not for strings 
have been red from a file.
 
$str=qq/'AAA' d 'BBB==>' aa 'CCC'/;  #defined string
open (FILE,"<",$file) or die "Cannt open $file: $!";
while($str=<FILE>){
        while($str=~/'([אA-Z0-9\s\W]+)'/g){
                print "$1   " ;
                }
}
close FILE;
In case of defined string output is AAA BBB==> CCC and from file : whole source 
string. 
I have a sensation of a some stupid trifle but need help to find it.



 Vladimir M. Bronfman
 Development Department
 LADPC Inc
 Israel
www.ladpc.co.il/eng

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Gordon
Sent: Wednesday, September 19, 2007 3:39 PM
To: ברונפמן ולדימיר; Perl in Israel
Subject: Re: [Israel.pm] text lexical analyzing

On Linux: /usr/share/dict/words might be start


On Wed, 2007-09-19 at 15:08 +0200, [EMAIL PROTECTED] wrote:
> Exactly. So, question may be transformed to:" Do you know some dictionary or
> morphological analyzer for English?" .
> 
> Vladimir M. Bronfman
> Development Department
> LADPC Inc
> Israel
> 972 3 927 5409
> www.ladpc.co.il/eng
> 
> 
> -----Original Message-----
> From: Yona Shlomo [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 19, 2007 2:53 PM
> To: ברונפמן ולדימיר; Perl in Israel
> Subject: Re: [Israel.pm] text lexical analyzing
> 
> On Wed, 19 Sep 2007, [EMAIL PROTECTED] wrote:
> 
> > Are someone know about module for text lexical analyzing?
> > I need some tool to determinate in plain text file (in fact - source file 
> > of Cobol program) strings are appropriate to words of regular English. For 
> > example: string 'CALL' is true, and 'CLL' - isn't.
> 
> Assuming that you know how to properly tokenize words, then
> all you need is to check each token against a dictionary or
> some morphological analyzer for English.
> 

_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

Reply via email to