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

FreeBSD Manual Pages

  
 
  

home | help
HFST-REGEXP2FST(1)		 User Commands		    HFST-REGEXP2FST(1)

NAME
       hfst-regexp2fst	-  =Compile (weighted) regular expressions into	trans-
       ducer(s)

SYNOPSIS
       hfst-regexp2fst [OPTIONS...] [INFILE]

DESCRIPTION
       Compile (weighted) regular expressions into  transducer(s)  Common  op-
       tions:

       -h, --help
	      Print help message

       -V, --version
	      Print version info

       -v, --verbose
	      Print verbosely while processing

       -q, --quiet
	      Only print fatal erros and requested output

       -s, --silent
	      Alias of --quiet

   Input/Output	options:
       -i, --input=INFILE
	      Read input transducer from INFILE

       -o, --output=OUTFILE
	      Write output transducer to OUTFILE

   String and format options:
       -f, --format=FMT
	      Write result in FMT format

       -j, --disjunct
	      Disjunct	all regexps instead of transforming each regexp	into a
	      separate transducer

       -l, --line
	      Input is line separated (default)

       -S, --semicolon
	      Input is semicolon separated

       -e, --epsilon=EPS
	      Map EPS as zero, i.e. epsilon.

       -x, --xerox-composition=VALUE Whether flag diacritics  are  treated  as
       ordinary
	      symbols in composition (default is false).

       -X, --xfst=VARIABLE
	      Toggle xfst compatibility	option VARIABLE.

   Harmonization:
       -H, --do-not-harmonize
	      Do not expand '?'	symbols.

       -F, --harmonize-flags
	      Harmonize	flag diacritics.

       -E, --encode-weights
	      Encode weights when minimizing (default is false).

       If  OUTFILE  or	INFILE is missing or -,	standard streams will be used.
       FMT must	be one of the following: {foma,	sfst, openfst-tropical,	 open-
       fst-log}.   If  EPS  is not defined, the	default	representation of 0 is
       used VALUEs recognized  are  {true,ON,yes}  and	{false,OFF,no}.	  Xfst
       variables are {flag-is-epsilon (default OFF)}.

EXAMPLES
       echo " {cat}:{dog} " | hfst-regexp2fst
	      create transducer	{cat}:{dog}

       echo " {cat}:{dog}::3 " | hfst-regexp2fst
	      same but with weight 3

       echo " c:d a:o::3 t:g " | hfst-regexp2fst
	      same but with weight 3 in	the middle

       echo " {cat}:{dog} ; 3 "	| hfst-regexp2fst
	      legacy way of defining weights

       echo " cat ; dog	; 3 " |	hfst-regexp2fst	-S
	      create transducers "cat" and "dog" and "3"

REPORTING BUGS
       Report  bugs  to	<hfst-bugs@helsinki.fi>	or directly to our bug tracker
       at:						      <https://source-
       forge.net/tracker/?atid=1061990&group_id=224521&func=browse>

       hfst-regexp2fst			      home			 page:
       <https://kitwiki.csc.fi/twiki/bin/view/KitWiki//Regexp2Fst>
       General		help	      using	      HFST	     software:
       <https://kitwiki.csc.fi/twiki/bin/view/KitWiki//HfstHome>

COPYRIGHT
       Copyright  (C) 2010 University of Helsinki, License GPLv3: GNU GPL ver-
       sion 3 <http://gnu.org/licenses/gpl.html>
       This is free software: you are free  to	change	and  redistribute  it.
       There is	NO WARRANTY, to	the extent permitted by	law.

HFST				 October 2014		    HFST-REGEXP2FST(1)

NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | REPORTING BUGS | COPYRIGHT

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

home | help