分歧保留
原能力
本人和参与者说法不同时,并列双方陈述和待核问题,保留各自的确认状态。(细化版 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')
实现与验收要点
主体隔离、并列而非覆盖、最终确认状态及权限。