Difference: OMorFiHfstString2fst (3 vs. 4)

Revision 42008-05-20 - MiikkaSilfverberg

Line: 1 to 1
 
META TOPICPARENT name="OMorFiHome"

OMorFi: hfst-string2fst

Line: 30 to 30
  A valid symbol is:
Changed:
<
<
  • A utf-8 character, except the characters :, <, > and any white-space-character.
>
>
  • A utf-8 character, except the characters :, <, >, \ and any white-space-character.
 
  • A multi-character-symbol consisting of utf-8 characters (except newlines) enclosed in angle-brackets <...>. The characters < and > have to be escaped by a \ inside multi-character-symbols. Hence e.g. < \<-- > is a valid symbol, but < <-- > isn't.

The special symbols 0 and <> signify the empty character. If you'd like to

Line: 42 to 42
  Any symbol following a \ inside angle brackets is considered to have its literal meaning. If you'd like to use the \ as a part of
Changed:
<
<
a symbol you can escape it: \\.
>
>
a symbol you can escape it: \\. The escape-character can only occur inside a multi-character-symbol, so the way to declare the symbol \ in the alphabet is <\\>.
  Empty lines in the alphabet-file are discarded.
Line: 93 to 95
  An OpenFst or SFST transducer will be stored in the output-file given to the program by the parameter -out. Which kind of transducer is created, depens on the library, that is used to build the program (see Installing the program, below).
Changed:
<
<
If an OpenFst transducer is created, a file called symbol_table will also be written. The file contains the alphabet of the transducer. If the your working-directory already contains a file called symbol_table, the file will be over-written! This means, that the behaviour of OpenFst transducers in the same directory will change, unless they've got the same alphabet as the new transducer you've created.
>
>
If an OpenFst transducer is created, a file called symbol_table will also be written. The file contains the alphabet of the transducer. If the your working-directory already contains a file called symbol_table, the file will be overwritten! This means, that the behaviour of OpenFst transducers in the same directory will change, unless they've got the same alphabet as the new transducer you've created.
 

Example

Line: 123 to 125
  E.g. the fifth row in the network above codes a transition from the fifth state to the sixth with the pair n:n and weight 1.
Changed:
<
<
The resulting transducer is stored in the file transducer. If the file exists already, it will be over-written.
>
>
The resulting transducer is stored in the file transducer. If the file exists already, it will be overwritten.
 

Getting the program

Line: 131 to 133
 

Installing the program

Changed:
<
<
The program is distributed with a Makefile. Basically you just need to run make, but you might have to make small adjustments to the file.
>
>
The program is distributed with a Makefile. Basically you just need to run make, but you might have to make small adjustments to the file. It's best to have the latest version of HFST istalled.
  You need to edit the line:
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback