Help for this page

Select Code to Download


  1. or download this
    sub stripPOS {
      my $words = shift;
    ...
    }
      $sentence =~
        s! \s \<NP\d*\> (.*?) \</NP\> \s ! stripPOS($1). '/NP' !egx;
    
  2. or download this
    <NP1> <NP2> The/D best/A one/N </NP>
      of/P <NP2> the/D Perl/N Monks/N </NP> </NP>