|
21 | 21 | }} |
22 | 22 | """ |
23 | 23 |
|
24 | | -ENTITY_TYPE_CONFLICT_PROMPT_EN = """You are a Knowledge Graph Consistency Assessment Expert. Your task is to determine whether there are semantic conflicts when the same entity is extracted as different types in different text blocks. |
| 24 | +ENTITY_TYPE_CONFLICT_PROMPT_EN = ( |
| 25 | + """You are a Knowledge Graph Consistency Assessment Expert. """ |
| 26 | + """Your task is to determine whether there are semantic conflicts """ |
| 27 | + """when the same entity is extracted as different types in different text blocks. |
25 | 28 |
|
26 | 29 | Entity Name: {entity_name} |
27 | 30 |
|
|
43 | 46 | "recommended_type": "<if there is a conflict, the recommended correct type (must be one of the preset types)>" |
44 | 47 | }} |
45 | 48 | """ |
| 49 | +) |
46 | 50 |
|
47 | 51 | ENTITY_DESCRIPTION_CONFLICT_PROMPT_ZH = """你是一个知识图谱一致性评估专家。你的任务是判断同一个实体在不同文本块中的描述是否存在语义冲突。 |
48 | 52 |
|
|
63 | 67 | }} |
64 | 68 | """ |
65 | 69 |
|
66 | | -ENTITY_DESCRIPTION_CONFLICT_PROMPT_EN = """You are a Knowledge Graph Consistency Assessment Expert. Your task is to determine whether there are semantic conflicts in the descriptions of the same entity across different text blocks. |
| 70 | +ENTITY_DESCRIPTION_CONFLICT_PROMPT_EN = ( |
| 71 | + """You are a Knowledge Graph Consistency Assessment Expert. """ |
| 72 | + """Your task is to determine whether there are semantic conflicts """ |
| 73 | + """in the descriptions of the same entity across different text blocks. |
67 | 74 |
|
68 | 75 | Entity Name: {entity_name} |
69 | 76 |
|
|
81 | 88 | "conflict_details": "<specific conflict content>" |
82 | 89 | }} |
83 | 90 | """ |
| 91 | +) |
84 | 92 |
|
85 | 93 | RELATION_CONFLICT_PROMPT_ZH = """你是一个知识图谱一致性评估专家。你的任务是判断同一对实体在不同文本块中的关系描述是否存在语义冲突。 |
86 | 94 |
|
|
100 | 108 | }} |
101 | 109 | """ |
102 | 110 |
|
103 | | -RELATION_CONFLICT_PROMPT_EN = """You are a Knowledge Graph Consistency Assessment Expert. Your task is to determine whether there are semantic conflicts in the relation descriptions of the same entity pair across different text blocks. |
| 111 | +RELATION_CONFLICT_PROMPT_EN = ( |
| 112 | + """You are a Knowledge Graph Consistency Assessment Expert. """ |
| 113 | + """Your task is to determine whether there are semantic conflicts """ |
| 114 | + """in the relation descriptions of the same entity pair across different text blocks. |
104 | 115 |
|
105 | 116 | Entity Pair: {source_entity} -> {target_entity} |
106 | 117 |
|
|
117 | 128 | "conflicting_relations": ["<pairs of conflicting relation descriptions>"] |
118 | 129 | }} |
119 | 130 | """ |
| 131 | +) |
120 | 132 |
|
121 | 133 | ENTITY_EXTRACTION_PROMPT_ZH = """从以下文本块中提取指定实体的类型和描述。 |
122 | 134 |
|
|
0 commit comments