jtyoui.ee package

Submodules

jtyoui.ee.entityextract module

class jtyoui.ee.entityextract.EntityExtraction(sentence: str, model_path: str = None)[源代码]

基类:object

信息抽取

address

提取地址

car_plate

提取车牌号码

org

提取机构名

people

提取人名

phone

提取手机号码

re_card

提取身份证号码

re_num

提取数字

sentences
set_sentence(sentence)[源代码]

从定义语句

time

提取时间

jtyoui.ee.knowledgegraph module

jtyoui.ee.knowledgegraph.entity_attribute_value(entity, attribute)[源代码]

实体&属性->属性值

参数:
  • entity – 实体名
  • attribute – 属性名
返回:

根据实体、属性获取属性值

jtyoui.ee.knowledgegraph.entity_to_knowledge(entity)[源代码]

实体->知识

参数:entity – 实体名
返回:根据实体获取实体知识
jtyoui.ee.knowledgegraph.mention_to_entity(mention)[源代码]

输入名称->实体

参数:mention – 输入名称
返回:根据名称获取歧义关系

Module contents