当前位置:网站首页>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 ~
边栏推荐
- 二造考生必看|巩固优选题库助力考生最后冲刺
- Jerry's test mic energy automatic recording automatic playback reference [article]
- AutoRF:从单视角观察中学习3D物体辐射场(CVPR 2022)
- Jerrys timer0 uses the default pa13 to detect the pulse width [chapter]
- 二叉树中最大路径和[处理好任意一颗子树,就处理好了整个树]
- 记录一次Mongotemplate的And和Or的各种套
- AntD checkbox,限制选中数量
- In the era of knowledge economy, it will teach you to do well in knowledge management
- [R language data science] (XIV): random variables and basic statistics
- 融云通信“三板斧”,“砍”到了银行的心坎上
猜你喜欢

OpenHarmony 1

ASCII code table extracted from tanhaoqiang's C program design (comparison table of common characters and ASCII codes)

食品饮料行业渠道商管理系统解决方案:实现渠道数字化营销布局

知识经济时代,教会你做好知识管理

Tupu software is the digital twin of offshore wind power, striving to be the first

HarmonyOS-3

leetcode:1504. Count the number of all 1 sub rectangles

In the era of knowledge economy, it will teach you to do well in knowledge management
![Jerry's infrared filtering [chapter]](/img/6b/7c4b52d39a4c90f969674a5c21b2c7.png)
Jerry's infrared filtering [chapter]

卷积核、特征图可视化
随机推荐
AutoRF:从单视角观察中学习3D物体辐射场(CVPR 2022)
Operation of simulated examination platform for examination questions of coal production and operation units (safety production management personnel) in 2022
2022 Quality Officer - Equipment direction - post skills (Quality Officer) recurrent training question bank and online simulation examination
Mit-6.824-lab4a-2022 (ten thousand words explanation - code construction)
pip uninstall all packages except builtin package
leetcode:1504. 统计全 1 子矩形的个数
Telecommuting: camping at home office gadgets | community essay solicitation
HarmonyOS.2
markdown/LaTeX中在字母下方输入圆点的方法
ASCII code table extracted from tanhaoqiang's C program design (comparison table of common characters and ASCII codes)
A review of text contrastive learning
智源社区周刊#86:Gary Marcus谈大模型研究可借鉴的三个语言学因素;谷歌提出媲美Imgen的文生图模型Parti;OpenAI提出视频预训练模型VPT,可玩MC游戏
SAP Marketing Cloud 功能概述(四)
AQS初探
钛星数安加入龙蜥社区,共同打造网络安全生态
二造考生必看|巩固优选题库助力考生最后冲刺
SAP Marketing Cloud 功能概述(三)
Second, the examinee must see | consolidate the preferred question bank to help the examinee make the final dash
2022年江西省安全员B证考试题库模拟考试平台操作
win10系统问题