和顺 / 知衡 返回所属 Agent
ZH-05.03

分歧记录

原能力

并列双方论据和资料时点,明确需要补证或由负责人复核的位置。(细化版 p.16–17)

首选项目

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')

实现与验收要点

责任主体、补证计划及对照时点。