source: src/compdic/compdic-fst-add @ 555c7f8

Last change on this file since 555c7f8 was f4bf33e, checked in by Tomasz Obrebski <to@…>, 13 years ago

dodane programy do uaktualniania slownika form (compdic-*)

  • Property mode set to 100755
File size: 490 bytes
Line 
1
2if [ $# -ne 2 ]
3then
4    echo "Usage:"
5    echo "        compdic-fst-add <automaton1> <automaton2>"
6    echo "where"
7    echo "    <automaton1> - automaton in openfst format"
8    echo "    <automaton2> - automaton in openfst format containing paths to be removed from <automaton1>"
9    exit 0
10fi     
11
12tempdir=`mktemp -d /tmp/compdic.XXXXXX`
13
14automaton=$tempdir/output.fst
15
16fstunion $1 $2 | fstrmepsilon | fstdeterminize | fstminimize | fsttopsort > $automaton
17mv $automaton $1
18rm -r $tempdir
Note: See TracBrowser for help on using the repository browser.