当前位置:网站首页>Online text entity extraction capability helps applications analyze massive text data
Online text entity extraction capability helps applications analyze massive text data
2022-06-23 13:10:00 【51CTO】
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 , 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 .
 Online text entity extraction capability , Help applications analyze massive text data _ Question answering system](https://s8.51cto.com/images/blog/202206/23100127_62b3c977ec3fc96123.gif)
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"}}}}}
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- Create an online text entity constructor
- 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 .
}
}
});
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
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();
}
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- After completion , Release resources
Learn more >>
visit Official website of Huawei developer Alliance
obtain Development guidance document
Huawei mobile service open source warehouse address : GitHub
Pay attention to our , The first time to understand HMS Core Latest technical information ~
边栏推荐
- Broadcast level E1 to aes-ebu audio codec E1 to stereo audio XLR codec
- PHP handwriting a perfect daemon
- 手机开户有什么风险吗?开户安全吗?
- R language uses the polR function of mass package to build an ordered multi classification logistic regression model, and uses exp function and coef function to obtain the corresponding odds ratio of
- If there is a problem with minority browsers, do you need to do a compatibility test?
- What are the criteria for judging the end of the test?
- How about stock online account opening and account opening process? Is it safe to open a mobile account?
- Is there any discount for opening an account now? Is it safe to open a mobile account?
- Photon网络框架
- C # learning (advanced course) day14 - features
猜你喜欢

Homekit supports the matter protocol. What does this imply?

2-optical-2-electric cascaded optical fiber transceiver Gigabit 2-optical-2-electric optical fiber transceiver Mini embedded industrial mine intrinsic safety optical fiber transceiver

技术分享| WVP+ZLMediaKit实现摄像头GB28181推流播放

测试时间不够怎么办?

Follow the promotional music MV of domestic tour in Thailand and travel to Bangkok like local people

How to test the third-party payment interface?

What are the criteria for judging the end of the test?

Excel-vba quick start (I. macros, VBA, procedures, types and variables, functions)

16 channel HD-SDI optical transceiver multi channel HD-SDI HD video optical transceiver 16 channel 3g-sdi HD audio video optical transceiver

Network foundation and framework
随机推荐
根据你的工作经历,说说软件测试中质量体系建设
How to test the third-party payment interface?
The filter function of dplyr package in R language filters the data rows containing the specified string in the specified data column of dataframe data based on the grepl function
【系统架构】-软件架构的5大风格
HomeKit支持matter协议,这背后将寓意着什么?
服务稳定性治理
Solve "thread 1:" -[*.collectionnormalcellview isselected]: unrecognized selector sent to instance 0x7F "
解决:Argument type ‘String‘ expected to be an instance of a class or class-constrained type
4E1 PDH optical transceiver 19 inch rack type single fiber transmission 20km E1 interface optical network optical transceiver
C#学习(高级课程)Day15——异常处理和命名空间
快速了解常用的非对称加密算法,再也不用担心面试官的刨根问底
RestCloud ETL解决shell脚本参数化
Esp32-c3 introductory tutorial problems ⑧ - blufi_ example. c:244: undefined reference to `esp_ ble_ gap_ start_ advertising
AssetBundle资源管理
Chinatown hiking: feel the strong Chinese flavor in the exotic New York
Dataset之GermanCreditData:GermanCreditData数据集的简介、下载、使用方法之详细攻略
C#学习(高级课程)Day13——反射
Stimulsoft Ultimate Reports 2022.3.1
R language uses the multinom function of NNET package to build a disordered multi classification logistic regression model, uses regression coefficients and their standard errors to calculate the valu
R语言使用MASS包的polr函数构建有序多分类logistic回归模型、使用summary函数获取模型汇总统计信息