Personal small program to achieve natural language Dialogue engineering inquiry--Express, ID, dictionary, weather and other functions complete code parsing

Source: Internet
Author: User

This applet is designed to query the functions of Express, ID, weather, poetry, dictionaries and so on through natural language dialogues.

Natural language dialogue, even in Chinese language directly to the program under the command, such as: ' Check the weather ', "Help me check the waybill number 123456", "I want to listen to Li Bai's quiet night thinking" and so on.

If you still don't understand, read the preface to the blog https://i.cnblogs.com/EditPosts.aspx?postid=7203097&update=1.

1. Small program Function Introduction

If you want to experience small programs directly, please scan the following QR code directly, this is more intuitive.

But the release of the small program does not have identity card query, because the individual's public number can not provide the government inquiry function (quite regrettable). But the code provided here has ID information query.

Code Download: Smart Query code download


* * Home
Clicking on any of the options and images in the homepage will go to the corresponding query screen:


* * Help Page help page provides a brief introduction of various functions and natural language understanding, technical exchange contact.


* * Sub-page
Each sub-page is provided with example sentences and toggle the function of the example, you can click on the example to try. Each sub-page also has output display, if there is too much content, you need to touch scrolling display.




* * Express Query Express query will list the courier company you want to inquire, waybill number and detailed information.


* Dictionary Query thesaurus has about 500,000 data, support synonyms, antonyms, provenance, meaning alone query.


* * ID card for identification of the first 6 people can only find the administrative location information, identification number can be found in addition to the name of the information.


* * Weather query weather support today before and after five days of query, also support temperature, wind, wind direction, index query, colloquial do better, such as "Tomorrow Cold Not Cold", "Tomorrow Shanghai will rain?"

* * Poetry recite poetry supports the search for the name of the poem, in addition to support the author's work, poetry and verse, the source of poetry.



* * Menu Query menu support menu name, cuisine, dishes type query.

* * The remaining features are no longer detailed, you can view the help page of the applet.

2. Code parsing 2.1 code structure


 ------Figure App.json defines all the pages, as well as the style of the title bar and navigation bar, including "Home" and "help" two Tabbar.-------index means "home" Page-------Express Express query page-------identify represents the Identity card query page-------Dict represents the Dictionary query page-------mine represents the help page-------general represents other pages, These pages agree to use the built-in syntax module provided by the Euler Honey website, so use the unified page code. However, we need to pass the corresponding parameters according to the different selection of the homepage. The API interface used in the  2.2 code because the applet only supports HTTPS access, the interface must support HTTPS access.  ------All natural language parsing, including the input box input sentences and sentences, are called Euler Honey AI open platform of natural language semantic Understanding API interface, detailed use of the method can refer to my other blog:    *  Using Euler's language development platform to realize intelligent Customer Service development     *   show you how to use Olami Natural language understanding open Platform API to make your own smart Chat assistant  -----Express Query interface         Here is the use of   Express Bird Instant query interface, free to use, please go to the official website () to apply for Appkey and Businessid, please fill in util queryexpress.js in the corresponding location:     ------Dictionary api        Fast data Chinese dictionary, Appkey fill in dict.js corresponding code:      --- -----ID Query api  FAST data   ID query API, after applying for appkey fill in identify.js corresponding code:  -------weather, poetry, calculations, recipes, The output data of other modules, such as jokes, are provided by the natural language understanding interface of Euler's honey,  related code is not general.js  function Parsecorpus (corpus,object) {} function processing.   3.   Commissioning     3.1 download codeAnd in the Applet development tool debugging          code download:   Smart query code download         NOTE: Before the corresponding API interface is applied, Express, Dictionary, ID query is not working properly, other modules can be tested normally. 3.2   Sweep code applet or follow public direct test         applet QR code:                      public QR code:                4. Technical Exchange               about natural language understanding use a place you can scan the following QQ group for technical Exchange:       & nbsp       

Personal Applet Realization Natural Language Dialogue Engineering inquiry--Express, ID, dictionary, weather and other functions complete code parsing

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.