oco( $funref )forPN( $funref )forPNstring( $funref, "textstring" [, regSeparator] )syllabe( $phrase )accent( $phrase )cqptokens()
Lingua::PT::pln - Perl extension for simple natural language processing, portuguese language
use Lingua::PT::pln;
printPN(@options); printPNstring($textstrint, @options); forPN(sub{my ($pn, $contex)=@_;... } ) ; forPNstring(sub{my ($pn, $contex)=@_;... } ,$textstring, regsep) ; $st = syllabe($phrase); $s = accent($phrase); $s = wordaccent($word); $s = xmlsentences($textstring); @s = sentences($textstring); oco({num=>1,output=>"file"}, "infile1", "infile2"); %o = oco("infile1", "infile2");
perl -MLingua::PT::pln -e cqptokens file* > out
oco( $funref )oco({num=>1,output=>"f"}, f1,f2,...) oco({alpha=>1,output=>"f"}, f1,f2,...) %oc=oco( f1,f2,...)
forPN( $funref )Substitutes all propername by funref(propername) in STDIN and sends
output to STDOUT
forPNstring( $funref, "textstring" [, regSeparator] )Substitutes all propername by funref(propername) in the text string.
syllabe( $phrase )Returns the phrase with the syllabes separated by "|"
accent( $phrase )Returns the phrase with the syllabes separated by "|" and accents marked with the charater ".
cqptokens()cpqtokens - encodes a text from STDIN for CQP (one token per line)
José João Almeida (jj@di.uminho.pt)
Paulo Rocha (paulo.rocha@alfa.di.uminho.pt)
thanks to
Diana Santos
perl(1).
cqp(1).