--- Begin Message ---
* Giulio Paci <giuliopaci@gmail.com>, 2014-01-23, 17:46:
It fixes a bug in phonetisaurus-calculateER.
I do not think the included patch is relevant to upstream as it does
not really solve the issue in the general case.
Agreed. Note that there are more hardcoded paths in
train-ngramlibrary.py (which we don't ship in the .deb):
$ grep -Er '[.]/|[^!]/usr' ./script/
./script/train-ngramlibrary.py: command = "./m2mformat.py PREFIX.m2m.corpus > PREFIX.corpus"
./script/train-ngramlibrary.py: command = "/usr/local/bin/farcompilestrings --symbols=PREFIXORDER.syms --keep_symbols=1 PREFIX.corpus > PREFIXORDER.far"
./script/train-ngramlibrary.py: command = "../phonetisaurus-arpa2wfst-omega --lm=PREFIX.arpa > PREFIX.fst"
./script/train-ngramlibrary.py: command = "./phonetisaurus-calculateER-omega --modelfile PREFIX.fst --testfile g014b2b.test.fix.bsf --prefix PREFIX --decoder_type fsa_eps"
./script/train-ngramlibrary.py: command = "./phonetisaurus-calculateER-omega --modelfile PREFIX.fst --testfile g014a2.test.tabbed.bsf --prefix PREFIX --decoder_type fsa_eps"
I will inform upstream about the issue and also ask if it is possible
to do anything in order to fix the remaining two pedantic lintian
warnings.
s/warnings/tags/
git://anonscm.debian.org/collab-maint/phonetisaurus.git
Uploaded.
Things to fix in the future releases:
* utfcpp is now packaged separately, so it's time to stop using the
embedded copy.
* copyright_hints appears to be outdated:
| WARNING: The following (and possibly more) new or changed notices discovered:
|
| src/Arpa2Fst.hpp
* Compiler warnings:
Phonetisaurus.cpp:214:9: warning: unused variable 'ip' [-Wunused-variable]
MBRDecoder.cpp:237:32: warning: passing NULL to non-pointer argument 1 of 'void google::dense_hash_map<Key, T, HashFcn, EqualKey, Alloc>::set_empty_key(const key_type&) [with Key = int; T = fst::LogWeightTpl<float>; HashFcn = std::tr1::hash<int>; EqualKey = std::equal_to<int>; Alloc = google::libc_allocator_with_realloc<std::pair<const int, fst::LogWeightTpl<float> > >; google::dense_hash_map<Key, T, HashFcn, EqualKey, Alloc>::key_type = int]' [-Wconversion-null]
MBRDecoder.cpp:698:12: warning: unused variable 'state' [-Wunused-variable]
M2MFstAligner.cpp:433:7: warning: variable 'xd' set but not used [-Wunused-but-set-variable]
M2MFstAligner.cpp:433:24: warning: variable 'yd' set but not used [-Wunused-but-set-variable]
PhonetisaurusOmega.cpp:287:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
PhonetisaurusOmega.cpp:287:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
PhonetisaurusOmega.cpp:294:55: warning: 'phi_cost' may be used uninitialized in this function [-Wmaybe-uninitialized]
PhonetisaurusOmega.cpp:294:55: warning: 'phi_id' may be used uninitialized in this function [-Wmaybe-uninitialized]
PhonetisaurusOmega.cpp:339:50: warning: 'phi_cost' may be used uninitialized in this function [-Wmaybe-uninitialized]
PhonetisaurusOmega.cpp:339:50: warning: 'phi_id' may be used uninitialized in this function [-Wmaybe-uninitialized]
phonetisaurus-g2p-omega.cpp:18:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
* phonetisaurus-calculateER* should escape arguments before passing them
to shell. Or, better, they should use the subprocess module instead of
os.system().
--
Jakub Wilk
--- End Message ---