# uie-server **Repository Path**: janelu9/uie-server ## Basic Information - **Project Name**: uie-server - **Description**: UIE模型信息抽取任务推断服务脚本,可以支持无限长度文本输入 ,比官方版本更快更准。 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-07 - **Last Updated**: 2023-05-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: uie, paddle, 信息抽取, inference, Transformer ## README # UIE Inference Service [UIE](https://gitee.com/paddlepaddle/PaddleNLP/tree/develop/applications/information_extraction/text) model's inference service for information extraction. Supportting infinite length of text inputs, faster and more accurate. ```python >>> from server import UIEInferModel,static_model_file,static_params_file >>> info_extract = UIEInferModel(static_model_file,static_params_file) >>> schema = ['时间', '人物', '赛事名称'] # Define the schema for entity extraction >>> text="2月8日上午北京冬奥会自由式滑雪女子大跳台决赛中中国选手谷爱凌以188.25分获得金牌!" >>> print(info_extract(schema, text)) {'时间': [{'text': '2月8日上午', 'start': 0, 'end': 6, 'probability': 0.9857378532473966}], '人物': [{'text': '谷爱凌', 'start': 28, 'end': 31, 'probability': 0.9986867948418592}], '赛事名称': [{'text': '北京冬奥会自由式滑雪女子大跳台决赛', 'start': 6, 'end': 23, 'probability': 0.8503081645734305}]} ```