Skip to content

Commit

Permalink
fix ner
Browse files Browse the repository at this point in the history
  • Loading branch information
royzhao committed Feb 8, 2025
1 parent dd8233c commit 8323b0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion kag/examples/LawQa/builder/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ def buildKB(file_path):

if __name__ == "__main__":
import_modules_from_path(".")
file_path = "./data/law_corpus.json"
file_path = "./data/min_chunk.json"

buildKB(file_path)
2 changes: 0 additions & 2 deletions kag/examples/LawQa/builder/prompt/ner.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ class OpenIENERPrompt(PromptABC):
template_zh = """
{
"instruction": "你是命名实体识别的专家。请从输入中提取与模式定义匹配的实体。如果不存在该类型的实体,请返回一个空列表。请以JSON字符串格式回应。你可以参照example进行抽取。",
"schema": $schema,
"schema名中文映射": $schema_zh
"example": [
{
"input": "最高人民法院、最高人民检察院关于办理寻衅滋事刑事案件适用法律若干问题的解释 第一条
Expand Down

0 comments on commit 8323b0e

Please sign in to comment.