Comments (3)
Hi joy369,
This warning message happens because of an error on line 309 of utils/sw_models/thot_pbs_gen_batch_sw_model.sh
script. It can be removed by fixing this file as follows:
309: - log_ext=`echo $file | $AWK '{print substr($1,length($1)-3)==".log"}'`
309: + log_ext=`echo $file | $AWK '{print (substr($1,length($1)-3)==".log")}'`
You should replace the version without the parentheses (top line) with the one with the parentheses around substr (bottom line). Rerunning make
should copy this file to /usr/local/bin/thot_pbs_gen_batch_sw_model
and the warning messages should disappear.
Let me know if it worked for you,
Cheers.
from thot.
Hi,
first of all, thanks very much to atomberg for pointing out to the exact cause of the problem and proposing a solution. I think it is a portability issue related to awk, since I have never found the errors reported by joy369 when using the tool across different platforms.
I have added a patch to solve the problem permanently. It is necessary to execute git pull
and reinstall the package. It would be great if you can confirm that now everything works correctly.
Regards.
from thot.
Hi again,
Thank both of you a lot, It works perfectly now.
I think it might be related to the platform I used is MAC OS sierra.
At first I try to assign AWK = gawk, and the error seem to be fixed.
Then I try the method that @atomberg mentioned and it also can solve this problem.
Thank @daormar for upgrading a new version.
from thot.
Related Issues (10)
- Cannot get the tm_desc file after using "thot_tm_train" HOT 8
- thot_tm_train -s ${src_train_corpus} -t ${trg_train_corpus} -o tm_outdir error HOT 34
- Add support for an incremental alignment model that models fertility HOT 4
- Installation make error HOT 2
- Windows support. HOT 2
- macos high sierra installation HOT 10
- missing files HOT 2
- Installation on Ubuntu18, Python2 vs Python3 print statements HOT 3
- Comparison to other solutions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thot.