和顺 / 周行 返回所属 Agent
ZX-08.02

主张核验

原能力

检查对外表述是否有原始材料支持,标记需要专业审核的内容。(细化版 p.6–7)

首选项目

Taguette(BSD-3-Clause)。 Taguette

匹配范围

支持片段引用和批注管理审核证据。

源码

Taguette · class Highlight

taguette/database/models.py · 592–605 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
class Highlight(Base):
    __tablename__ = 'highlights'
    __table_args__ = ({'sqlite_autoincrement': True},)

    id = Column(Integer, primary_key=True)
    document_id = Column(Integer, ForeignKey('documents.id',
                                             ondelete='CASCADE'),
                         nullable=False, index=True)
    document = relationship('Document', back_populates='highlights')
    start_offset = Column(Integer, nullable=False)
    end_offset = Column(Integer, nullable=False)
    snippet = Column(Text, nullable=False)
    tags = relationship('Tag', secondary='highlight_tags',
                        back_populates='highlights')

实现与验收要点

核证主张真伪、商业表述和专业审核路径。