Ltp4j Use bugs and solutions

Source: Internet
Author: User

Zi mo zi once said, LTP is a good model!

Car teacher OnePlus also has Bhan development ltp4j is a very good project, the use is also very convenient, following a few common errors caused by the use of log analysis of the bug

1, Phenomenon Description: Program interrupted, generate a Hs_err_pidxxxx.log file

# A fatal error have been detected by the Java Runtime environment:## SIGSEGV (0xb) at pc=0x00007fab8c69b911, pid=2398, TI d=140375976539904## JRE Version:java (TM) SE Runtime Environment (8.0_73-B02) (Build 1.8.0_73-b02) # Java Vm:java HotSpot ( TM) 64-bit Server VM (25.73-b02 mixed mode linux-amd64 compressed oops) # problematic frame:# C [libsegmentor.so.0.2.0+0x1 A911] _zn5boost12regex_searchin9__gnu_cxx17__normal_iteratoripkcsseesains_9sub_matchis5_eeecns_12regex_ Traitsicns_16cpp_regex_traitsiceeeeeebt_sd_rns_13match_resultsisd_t0_eerkns_11basic_regexit1_t2_eens_15regex_ constants12_match_flagsesd_.constprop.277+0x11## Failed to write core dump. Core dumps has been disabled. To enable core dumping, try "ulimit-c unlimited" before starting Java again## A error report file with more information is saved as:#/home/xxx/test/java_test/corefmodule/hs_err_pid2398.log## If you would like to submit a bug report, please V isit:# http://bugreport.java.com/bugreport/crash.jsp

Possible causes of the problem:

    • Not enough memory--->-xmx2g above
    • Model file not found---> Verify that the model file path exists
    • The model has no write-initialization code---> initializes it when the function executes

2, the phenomenon Description: The program is interrupted, the following is also the detailed information, the display is. So error

Double 0X00007FC774139DC0 * * *

Possible causes of the problem:

    • System version and source code, model version mismatch---> model download the latest version of

There are several reasons for this problem in C language: from http://blog.csdn.net/yalisiyi1/article/details/9284391

Two reasons
1.
int* a = new int (10);
Delete A;
Delete A; <----this

2. int* A;
Delete A; <----this

There's another one.

Char s[10];
int* a = new int (10);
sprintf (S, "1234567890");
Delete A; A was covered by the front.

======================================================

Of course, the reasons for the various problems, in the source code more than print some log is better ~ ~

Ltp4j Use bugs and solutions

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.