Open mlj opened 7 years ago
If apply up < foobar.txt is used in a script file with the -l or -f switch, foobar.txt is not found. If the same is used interactively, the file is found.
apply up < foobar.txt
-l
-f
foobar.txt
Here is a minimal example:
$ cat a.script read lexc < a.lexc up < a.txt $ cat a.lexc LEXICON Root foobar # ; $ cat a.txt foobar $ foma -l a.script Root...1 Building lexicon... Determinizing... Minimizing... Done! 386 bytes. 7 states, 6 arcs, 1 path. a.txt : Error opening file: No such file or directory Foma, version 0.9.18alpha (svn r0) Copyright © 2008-2015 Mans Hulden This is free software; see the source code for copying conditions. There is ABSOLUTELY NO WARRANTY; for details, type "help license" Type "help" to list all commands available. Type "help <topic>" or help "<operator>" for further help. foma[1]: up < a.txt foobar foobar
This may be a user error on my part, but this behaviour differs from xfst which works in this case.
If
apply up < foobar.txt
is used in a script file with the-l
or-f
switch,foobar.txt
is not found. If the same is used interactively, the file is found.Here is a minimal example:
This may be a user error on my part, but this behaviour differs from xfst which works in this case.