Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/OpenNMT/OpenNMT.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/onmt
diff options
context:
space:
mode:
authorJean A. Senellart <jean.senellart@systrangroup.com>2017-11-15 17:26:30 +0300
committerJean A. Senellart <jean.senellart@systrangroup.com>2017-11-15 17:26:30 +0300
commita6cc8ce15c3ca318d258dc40fab1cfcb566a7630 (patch)
tree3b8f34bded24218535f3fb309e10569b8af2a5f1 /onmt
parent3973ef082f2a72205ac461317c1988b8a5fc5f3f (diff)
fix failing test on lua 5.1
Diffstat (limited to 'onmt')
-rw-r--r--onmt/data/Preprocessor.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/onmt/data/Preprocessor.lua b/onmt/data/Preprocessor.lua
index 63691377..cd64b595 100644
--- a/onmt/data/Preprocessor.lua
+++ b/onmt/data/Preprocessor.lua
@@ -820,7 +820,7 @@ function Preprocessor:makeGenericData(files, isInputVector, dicts, nameSources,
end
_G.logger:info(' * ['..__threadid..'] file \'%s\': %d total, %d drawn, %d kept - unknown words: %s',
- _df.fname, _df[1], kept, #vectors[1], msgPrune)
+ _df.fname or "n/a", _df[1], kept, #vectors[1], msgPrune)
gCount = gCount + count
gIgnored = gIgnored + ignored