![]() There are some libraries and toolkits which are used by Moses. Step 5 - Installing Libraries and ToolKits You will find the Linux format path of your directory displayed in the cmd when you typed wsl in step 1.6 or 2.1. Replace the path in bold with the Linux format path to the directory you cloned the repo into. This will copy the 3 files, GIZA++, snt2cooc.out, and mkcls into a new folder called tools inside mosesdecoder cd mosesdeocder mkdir tools cp /c/Users/HP/SMT_trial2/giza-pp/GIZA++-v2/GIZA++ /c/Users/HP/SMT_trial2/giza-pp/GIZA++-v2/snt2cooc.out /c/Users/HP/SMT_trial2/giza-pp/mkcls-v2/mkcls tools Therefore, type the below 4 commands in the cmd: cd. Next, you need to copy the three files generated from the makecommand to a folder called tools in mosesdecoder. Type in the below two commands in the cmd to compile GIZA++ cd giza-pp make Next clone GIZA++ which is used for word alignment in bilingual corpora using the command: git clone.Clone Moses decoder using the command: git clone. ![]() As per step 1.6, Open the cmd in the directory you’re going to work in and type wsl.To start using Moses decoder, you need to clone it along with some other tool(s) which it utilizes. Packages: g++ git subversion automake libtool zlib1g-dev libicu-dev libboost-all-dev libbz2-dev liblzma-dev python-dev graphviz imagemagick make cmake libgoogle-perftools-dev autoconf doxygen Step 3 - Clone Essential Repos Next, install required packages using the below command sudo apt-get install Step 2 - Install Packagesįrom this step onwards, all commands should be typed inside the wsl cmd.Īs per step 1.6, Open the cmd in the directory you’re going to work in and type wsl Open the ~/.bash_profile file (for bash users) or the ~/.zsh_profile file (for zsh users) using your favorite text editor, such as vim, nano, emacs, or TextEdit.At this point, you have WSL installed on your device. ![]() The following instructions are for bash and zsh. You check which one you have by running echo "$SHELL". Check which shell is running on the Terminal. Select the variable Path in the user variables section and then click "Edit", which opens a new pane.Ĭlick "New" to add a new path, for example, the directory containing gcc or the pip scripts. You can add it either to the Path associated with your account or the system Path. Search for Edit environment variables in the search bar. In Harmony versions 1.2.0 and higher, the compiler will output a warning if the currently installed version of Harmony is outdated and an updated one can be installed. On the command line, you can check if Python has been successfully installed by running the following: If you choose to run the installer with custom settings, be sure that pip gets installed. In the installer, the default installation settings will also add pip. Be sure to download the installer for Python version 3.6 or higher. ![]() If you do not have Python3 already installed, download and install Python depending on your OS (Windows, Mac, Linux, etc) on the official Python site. Harmony requires Python (version 3.6 or higher) to be installed. However, you can verify that they are available by running python3 -version and dot -V respectively. you likely do not need to install Python3 or Graphviz because they may be available already. In the following instructions, Windows users using WSL should follows instructions for Linux.įor users of a Cornell CS Department Linux machine, e.g. Harmony requires the following to be installed: 32 Needham-Schroeder Authentication Protocol ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |