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

FreeBSD Manual Pages

  
 
  

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

NAME
       Search::OpenFTS::Parser - Provides functions for	parsing

SYNOPSIS
       my $parser=Search::OpenFTS::Parser->new();

       $types =	$parser->alltypes;

       $parser->start_parser( \$text );

       $parser->start_parser( \*STDIN );>

       $parser->start_parser( \*STDIN, $limit );

       while( (	($type,	$word) = $parser->get_word ) &&	$type )	{

	       print $parser->S<type_description>( $type ),"\t$word\n";
       }

       $parser->end_parser;

       The parser will convert the text	in the variable	$text into a stream of
       lexemes together	with their type	ID. To get all types of	lexemes	that
       the parser supports use:

       my @types = $parser->alltypes;

       map {print "$_ => $types[$_]\n";	} 1..$#types;

DESCRIPTION
       The package Search::OpenFTS::Parser is a	wrapper	around the parser
       functions.  The particular functions that a parser must provide in
       order to	work with OpenFTS  are discussed in section VII
       (Customizations)	of the OpenFTS primer.

       Parser recognizes following types of lexemes:

	1 => Latin word
	2 => Cyrillic word
	3 => Word
	4 => Email
	5 => URL
	6 => Host
	7 => Scientific	notation
	8 => VERSION
	9 => Part of hyphenated	word
	10 => Cyrillic part of hyphenated word
	11 => Latin part of hyphenated word
	12 => Space symbols
	13 => Char in tag
	14 => HTTP head
	15 => Hyphenated word
	16 => Latin hyphenated word
	17 => Cyrillic hyphenated word
	18 => URI
	19 => File or path name
	20 => Decimal notation
	21 => Signed integer
	22 => Unsigned integer

SEE ALSO
	   The OpenFTS Primer	       (  see doc/ subdirectory	)

	   The Crash-course to OpenFTS ( in examples/ subdirectory )

	   perldoc Search::OpenFTS::Search

	   perldoc Search::OpenFTS::Index

	   perldoc Search::OpenFTS::Dict::PorterEng

	   perldoc Search::OpenFTS::Dict::Snowball

	   perldoc Search::OpenFTS::Dict::UnknownDict

	   perldoc Search::OpenFTS::Morph::ISpell

perl v5.24.1			  2009-12-04			     Parser(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO

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

home | help