当前位置:网站首页>Online text entity extraction capability helps applications analyze massive text data
Online text entity extraction capability helps applications analyze massive text data
2022-06-24 14:15:00 【HMS Core】
With the development of information technology , Many valuable knowledge hiding is distributed in massive data , It affects the efficiency of people acquiring knowledge , How to deal with the complicated unstructured text data has become a difficult problem .
In recent days, ,HMS Core Machine learning services 6.5.0 Version added Online text entity extraction capability , This ability can detect whether there is a date in the text 、 full name 、 Proper nouns and other entity information , And extract such entities , That is, the ability to automatically process unstructured natural language text data . for example , The application of the film and television industry often produces a large number of film reviews 、 Information, etc , Using the online text entity extraction capability, we can quickly extract structural information , Help build knowledge map , It is easy for users to understand clearly .

Besides , Text entity extraction capability is more used in question and answer system 、 Information index 、 Knowledge map construction and other fields .
Question answering system
Question answering system is an advanced form of information retrieval system , It can be used accurately 、 Simple natural language to answer user's questions . During the implementation of question answering system , Then we need to use the text entity extraction ability to identify the problem and the entity information in the knowledge base , And then through a variety of algorithm models to match the accurate answer .
Information index
Use online text entity extraction capabilities , You can name specific entity information as indexes and hyperlinks . For example, the proper nouns mentioned by users in their comments , You can generate hyperlinks , It is convenient for other users to search and understand relevant contents .
Knowledge map construction
The map of knowledge is made up of entities 、 A data structure consisting of relationships and attributes , That is, a knowledge base with directed graph structure , Text entity extraction capability is the bottom capability in the process of knowledge map construction , It plays an extremely important role . For example, build a music knowledge map , First, we need to extract singers from a large amount of text data 、 song 、 Lyrics 、 Film and television and other related information , Then build the knowledge map .
at present , The online text entity extraction capability of Huawei machine learning service supports a total of person names 、 money 、 Film name 、 Page links 16 Entity categories , It can be applied to different categories according to the actual semantic scenarios App in .
Integration steps
- The development of preparation
For detailed preparation steps, please refer to Official website of Huawei developer Alliance .
- Integration and configuration apigateway authentication
be based on apigateway The authentication mechanism of :
"paths": {"/entityExtract": { "post": { "operationId": "entityExtract","parameters": [{"in": "body", "name": "req", "required": true,"schema": { "$ref": "#/definitions/NerEnterReq" } }, {"name": "X-Request-ID", "in": "header", "required": true,"type": "string"}, {"name": "X-Package-Name", "in": "header", "required": true,"type": "string" }, ……], "responses": {"200": { "description": "response of 200","schema": { "$ref": "#/definitions/ResponseEntityNerBodyVo"}}}}}- Create an online text entity constructor
// Create a language detector using a custom parameter configuration . MLRemoteNerSetting setting = new MLRemoteNerSetting.Factory() .setSourceLangCode("zh") .create();MLRemoteNer ner = MLNerFactory.getInstance().getRemoteNer(setting); Extract text entities .- Get text entity extraction online
Asynchronous method sample code :
ner.asyncEntityExtract(input).addOnSuccessListener(new OnSuccessListener<RemoteNerResultItem[]>() { @Override public void onSuccess(RemoteNerResultItem[] remoteNerResults) { // Successful processing logic . if(remoteNerResults != null){ // There are identification results }else { // The recognition result is null } } }).addOnFailureListener(new OnFailureListener() { @Override public void onFailure(Exception e) { // Recognition failed , Get relevant exception information . try { MLException mlException = (MLException) e; // Get error code , Developers can handle error codes , According to the error code for differentiated page prompt . int errorCode = mlException.getErrCode(); // Get error information , Developers can combine error codes , Fast location problem . String errorMessage = mlException.getMessage(); } catch (Exception error) { // Conversion error handling . } } });Synchronization method sample code :
try { RemoteNerResultItem[] remoteNerResults = ner.syncEntityExtract(input); // Identify success logic if(remoteNerResults != null){ // There are identification results }else { // The recognition result is null } } catch (MLException mlException) { // Failed processing logic . // Get error code , Developers can handle error codes , According to the error code for differentiated page prompt . int errorCode = mlException.getErrCode(); // Get error information , Developers can combine error codes , Fast location problem . String errorMessage = mlException.getMessage(); }- After completion , Release resources
if (ner != null) { ner.stop();}Learn more >>
visit Official website of Huawei developer Alliance
obtain Development guidance document
Huawei mobile service open source warehouse address :GitHub、Gitee
Pay attention to our , The first time to understand HMS Core Latest technical information ~
边栏推荐
- P2pdb white paper
- Defoaming
- 知识经济时代,教会你做好知识管理
- 【Pytorch】量化
- NPM package [details] (including NPM package development, release, installation, update, search, uninstall, view, version number update rules, package.json details, etc.)
- ASCII code table extracted from tanhaoqiang's C program design (comparison table of common characters and ASCII codes)
- The function and principle of key in V-for
- Kotlin shared mutable state and concurrency
- Telecommuting: camping at home office gadgets | community essay solicitation
- Mit-6.824-lab4a-2022 (ten thousand words explanation - code construction)
猜你喜欢

The first open source MySQL HTAP database in China will be released soon, and the three highlights will be notified in advance

npm包【详解】(内含npm包的开发、发布、安装、更新、搜索、卸载、查看、版本号更新规则、package.json详解等)

杰理之红外滤波【篇】
![Jerry's serial port receiving IO needs to set the digital function [chapter]](/img/04/48e7da42101a53827463d479952f67.png)
Jerry's serial port receiving IO needs to set the digital function [chapter]
![二叉树中最大路径和[处理好任意一颗子树,就处理好了整个树]](/img/d0/91ab1cc1851d7137a1cab3cf458302.png)
二叉树中最大路径和[处理好任意一颗子树,就处理好了整个树]

Rasa 3.x 学习系列-非常荣幸成为 Rasa contributors 源码贡献者,和全世界的Rasa源码贡献者共建共享Rasa社区!

OpenHarmony 1

In the era of knowledge economy, it will teach you to do well in knowledge management

One click to generate University, major and even admission probability. Is it so magical for AI to fill in volunteer cards?

Google waymo proposed r4d: remote distance estimation using reference target
随机推荐
Jericho turns on shouting in all modes to increase mic automatic mute [chapter]
English writing of Mathematics -- Basic Chinese and English vocabulary (common vocabulary of geometry and trigonometry)
Go语言三个高效编程的技巧
Jupiter notebook operation
OpenHarmony 1
厨卫电器行业B2B交易协同管理平台开发,优化企业库存结构
Télétravail: Camping à la maison gadgets de bureau | rédaction communautaire
智慧园区SaaS管理系统解决方案:赋能园区实现信息化、数字化管理
Jerry's seamless looping [chapter]
Explain kubernetes backup and recovery tools velero | learn more about carina series phase III
Dragon lizard developer said: first time you got an electric shock, so you are such a dragon lizard community| Issue 8
[untitled]
二造考生必看|巩固优选题库助力考生最后冲刺
JS remove string spaces
OpenHarmony 1
融云通信“三板斧”,“砍”到了银行的心坎上
Development of B2B transaction collaborative management platform for kitchen and bathroom electrical appliance industry and optimization of enterprise inventory structure
Second, the examinee must see | consolidate the preferred question bank to help the examinee make the final dash
智源社区周刊#86:Gary Marcus谈大模型研究可借鉴的三个语言学因素;谷歌提出媲美Imgen的文生图模型Parti;OpenAI提出视频预训练模型VPT,可玩MC游戏
Telecommuting: camping at home office gadgets | community essay solicitation