Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
HeadFinder(3)	      User Contributed Perl Documentation	 HeadFinder(3)

NAME
       Lingua::Treebank::HeadFinder - Head-finding in Lingua::Treebank

SYNOPSIS
	 use Lingua::Treebank;

	 my @utterances	= Lingua::Treebank->from_penn_file($filename);

	 foreach (@utterances) {
	   # $_	is a Lingua::Treebank::Const now

	   foreach ($_->get_all_terminals) {
	     # $_ is a Lingua::Treebank::Const that is a terminal (word)

	     print $_->word(), ' ' $_->tag(), "\n";
	   }

	   print "\n\n";

	 }

ABSTRACT
	 Lingua::Treebank::HeadFinder is an object that	reads a
	 Magerman-style	head-finding list and performs headfinding on
	 Lingua::Treebank::Const trees.

DESCRIPTION
	 The L::TB::HeadFinder object is initialized from a list like the one in

       To do

perl v5.32.0			  2008-03-21			 HeadFinder(3)

NAME | SYNOPSIS | ABSTRACT | DESCRIPTION

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Lingua::Treebank::HeadFinder&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help