jquery gets and parses the JSON data returned by hit Ltp-cloud

Source: Internet
Author: User

Ltp-cloud is a powerful cloud-based service platform for Chinese processing tools, the service invocation is simple, the return result format is diverse, here is jquery+json as an example to illustrate. The official on GitHub also provides a simple usage example, but it just gets the JSON-formatted string and does not parse the JSON data. This paper makes up for this shortcoming. The specific code is as follows:

Note: In this example, to obtain the part of the POS notation, you can adjust the URL of the calling LTP according to your needs, and the parsing code in the success method should be adjusted accordingly.


The results are as follows:


jquery gets and parses the JSON data returned by hit Ltp-cloud

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.