Niutrans diary 1

Source: Internet
Author: User

These days I have built the niutrans System of the natural language laboratory of Northeastern University and run the phrase system as an example. I wrote this diary mainly to remind myself of the problems encountered here.

Environment: I have run both Windows and Linux in the phrase system. The effect is better than that in Linux. There are always some unknown bugs in windows. At the same time, in Windows, cygwin and Perl have to be installed, and cygwin's running memory is too small. Therefore, an error may occur, so it is better to run it directly in the DOS environment (it is very troublesome to input commands in the DOS environment, A few lines must be left blank before and after each command ). PS: this is why I switched to the Linux environment. (Perl in Linux environment does not have to be installed)

Question 1: When Giza ++ is used in windows, "cannot open include file: 'tr1/unordered_map '": no such file or directory is displayed, this problem has not been solved yet. It is estimated that the library file is missing, but there are also batch processing tools on the Internet that integrate Giza ++ into windows.

Problem 2: When running in Ubuntu to the last step, that is, the script mteval-v13a.pl depends on the XML: parser package, so the following error occurs when you need to install it.

There is no expat. h file.

Later I checked on the internet, directly install the libexpat1-dev, directly input apt-Get install libexpat1-dev can be compiled through.

The blue score after running is:

 

Now the phrase system is finished.

Niutrans diary 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.