Difference: HfstDiffTest (8 vs. 9)

Revision 92009-10-05 - ErikAxelson

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

hfst-diff-test

Line: 6 to 6
 

Purpose

Added:
>
>
Compare results of lookup against reference set.

Usage

USAGE
[ cat FST_FILE | ] ./hfst-diff-test [ OPTIONS ] [FST_FILE ]

Parameters

Parameters common for all commandline programs.

-h, --help Print help message
-V, --version Print version info
-v, --verbose Print verbosely while processing
-q, --quiet Do not print output
-s, --silent Alias of --quiet
<--  
-->

Parameters common for all commandline programs taking one input stream and writing text as output.

-i, --input=FILENAME Read input transducer from FILENAME
-o, --output=FILENAME Write output to text-file FILENAME
-R, --read-symbols=FILENAME Read symbol table from FILENAME

<--  
-->

Parameters specific for hfst-diff-test.

-d, --debug Display debug information (mainly for development).
-r, --relation=FILE The file with input strings and corresponding output string sets.
-S, --spaces Give symbol-pairs in the input strings separated by spaces.
-t, --test=TTYPE Use TTYPE test comparing result sets

Details

 Test the regular relation defined by a cascade of one or more transducers. Apply the transducers one after another on input strings to produce a set of output strings. Compare the
Line: 29 to 53
 transducers on the forms and displaying the resulting output forms.
Deleted:
<
<

Usage

USAGE
[ cat FST_FILE | ] ./hfst-diff-test [ OPTIONS ] [FST_FILE ]

Parameters

Parameters common for all commandline programs.

-h, --help Print help message
-V, --version Print version info
-v, --verbose Print verbosely while processing
-q, --quiet Do not print output
-s, --silent Alias of --quiet
<--  
-->

Parameters common for all commandline programs taking one input stream and writing text as output.

-i, --input=FILENAME Read input transducer from FILENAME
-o, --output=FILENAME Write output to text-file FILENAME
-R, --read-symbols=FILENAME Read symbol table from FILENAME

<--  
-->

Parameters specific for hfst-diff-test.

-d, --debug Display debug information (mainly for development).
-r, --relation=FILE The file with input strings and corresponding output string sets.
-S, --spaces Give symbol-pairs in the input strings separated by spaces.
-t, --test=TTYPE Use TTYPE test comparing result sets
 
Changed:
<
<

Notes

>
>

Notes

 
  • The test forms are given in a test file. The test file should have input forms and the correspnding output forms. The forms should be grouped into blocks, so that each input form is followed by its output forms. The blocks should be separated by lines of whitespace.
  • The order of the output forms is not significant, but the input form should always be the first form of a block.
Line: 63 to 68
 
at-least
Tests E \ R = 0, if not, prints E \ R, if verbose is on
none
Tests E & R = 0, if not, prints E & R if verbose is on
Changed:
<
<

Testing a generator for English noun-forms

>
>

An Example: Testing a generator for English noun-forms

  Consider the small HfstLexC example lexicon english.nouns.lexc below. It is meant to generate the sigular and plural forms of the nouns dog, volcano and glass. Since its only mechanism for doing this, is to adjoin an s at the end word stems, it will not generate the correct plural forms volcanoes and glasses, but it will generate the incorrect plural form glasss.

 
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