Last change
on this file since f4bf33e 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
|
Rev | Line | |
---|
[f4bf33e] | 1 | |
---|
| 2 | if [ $# -ne 2 ] |
---|
| 3 | then |
---|
| 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 |
---|
| 10 | fi |
---|
| 11 | |
---|
| 12 | tempdir=`mktemp -d /tmp/compdic.XXXXXX` |
---|
| 13 | |
---|
| 14 | automaton=$tempdir/output.fst |
---|
| 15 | |
---|
| 16 | fstunion $1 $2 | fstrmepsilon | fstdeterminize | fstminimize | fsttopsort > $automaton |
---|
| 17 | mv $automaton $1 |
---|
| 18 | rm -r $tempdir |
---|
Note: See
TracBrowser
for help on using the repository browser.