情绪轨迹
原能力
按事件先后标注感受的出现、转折和缓解。对照原话,标记证据不足的段落。(细化版 p.2–3)
首选项目
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')
实现与验收要点
事件时序、动态变化、本人确认和不同观察者的差异。