Comments (10)
Thanks,it can run well now.
from nmt-multi.
spm_train
is a command of sentencepiece toolkit. Please install sentencepiece first and the shell script you mentioned can run well.
from nmt-multi.
Thanks for your response so quickly, i found i can't install sentencepiece as command line tools because i am not root,i am sorry i am a rookie,is that possible i can install it as a non-root user?
from nmt-multi.
Yes. You can run pip install sentencepiece
or conda install sentencepiece
to install sentencepiece. After that, the command line tools provided by sentencepiece can be direly used. There is no need to build and install sentencepiece from the source, which may require root privileges to install the build tools.
from nmt-multi.
Thanks a lot, conda install sentencepiece
will be a solution, pip install
may not be compatible with conda
from nmt-multi.
There may be some discrepancy between sentencepiece
from pip
and conda
. As sentencepiece
in my Python environment is installed through conda install sentencepiece
and the command line tools work well, I thought pip install sentencepiece
will also work 😥.
from nmt-multi.
when I in nmt-multi
directory to run bash scripts/ted/data_process/multilingual_preprocess.sh
. It couldn't find nmt
module in python -u ${project_dir}/nmt/data_handling/corpus_manager.py
. My project diretory is /home/.../nmt-multi
.
I was curious that if adding __init__.py
would work , but it turns to be not.
I edit the corpus_manager.py
, changing nmt.data_handling
to data_utils
and it can work.
from nmt-multi.
In the data_handling/data_utils
,there is one import from nmt.tools import Converter
,i couldn't find nmt.tools
.
from nmt-multi.
Thanks for reporting these issues.
You can insert the path of nmt-multi
directory to the environment variable PYTHONPATH
to make Python interpreter aware of the nmt
package. python -u ${project_dir}/nmt/data_handling/corpus_manager.py
can work well afterward. Below is an example:
export PYTHONPATH=/path/to/nmt-multi:${PYTHONPATH}
when I in
nmt-multi
directory to runbash scripts/ted/data_process/multilingual_preprocess.sh
. It couldn't findnmt
module inpython -u ${project_dir}/nmt/data_handling/corpus_manager.py
. My project diretory is/home/.../nmt-multi
. I was curious that if adding__init__.py
would work , but it turns to be not. I edit thecorpus_manager.py
, changingnmt.data_handling
todata_utils
and it can work.
Sorry, this is a mistake during cleaning up the source codes. Please delete this line.
In the
data_handling/data_utils
,there is one importfrom nmt.tools import Converter
,i couldn't findnmt.tools
.
from nmt-multi.
Hi, I pushed a new commit to this repository and the changed files can be found at here. Does this script run well now?
from nmt-multi.
Related Issues (6)
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 nmt-multi.