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

论点与支持条件

原能力

把投资判断拆成可核对的前提,指出支撑证据、适用对象与条件。(细化版 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')

实现与验收要点

抽取必要前提、条件有效性、事实/意见区分。