Repository navigation
Conversation
Clarify that coordinate predicates remain independent event closures even when they share a subject, time, or context. Add a fourth authoritative prompt example and golden fixture for splitting sitting, eating, and phone-use actions into separate components. Preserve strict single-root target_occ semantics and prevent aggregate-plus-split duplicate output. Cover the prompt contract and validator-compatible three-component projection with regression tests.
Adopt the authoritative three-example prompt, resolved tri-state fields, nested predicate closure rules, and bounded deterministic repairs. Reject external Genemes, preserve source fidelity in rule templates while allowing source-backed composite expressions, and add regression coverage for retry and target repair semantics.
Forbid gluing a verb-bearing clause into one E. Content of 显示/喜欢 goes in tree.nested; verb-free time like 昨天晚上 stays one modifier E. Still exactly three canonical examples. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Caution
请勿合并此 PR。
这是一个仅供评审的 Draft PR。当前实现已修复已报告的回归问题,但仍包含针对特定输入的 prompt 约束和已知语义局限。任何合并决定都必须经过技术与语言层面的评审。
基线
本工作基于 Hyper-Extract 提交
a9a5e0a,即当前wxs-noesis固定使用的版本。概述
本次修改调查并改进了 Noesis 对嵌套实际事件的抽取行为。
此前,模型可能把包含动作或状态谓词的完整从句保留为一个较大的
Eatom,而不是提取其中的谓词及其语义层级。此外,本次修改还增加了对 LLM 返回 Markdown JSON 代码围栏的窄范围处理。
修改内容
Eatom。主要涉及文件:
hyperextract/noesis/prompt.pyhyperextract/noesis/extractor.pytests/noesis/test_extractor.pytests/noesis/test_edge_and_tree_structure.py验证结果
已记录的确定性测试结果: