Skip to content

Releases: annotation/stam-python

v0.10.1

18 Oct 10:03
Compare
Choose a tag to compare
  • upgraded pyo3 from 0.20 to 0.22 (pyo3 API migration), assures Python 3.13 compatibility
  • added debug keyword argument to methods that internally use queries

v0.10.0

04 Oct 14:07
Compare
Choose a tag to compare
  • Implemented TextSelection.align_texts() and AnnotationStore.align_texts() (parallelised version) for alignment of text using Smith-Waterman/Needleman-Wunsch
  • Implemented TextSelection.select()
  • Bugfix: removed some incomplete and obsolete assertions
  • Corrected various function signatures and added some missing ones

v0.9.1

22 Sep 21:29
Compare
Choose a tag to compare
  • Updated to stam-rust v0.16.2 and stam-tools 0.8.3
  • Added AnnotationStore.annotation(substore=False) (new keyword argument) to retrieve annotations in the root store only.
  • Expanded the API for substores, new methods:
    • Annotation.substore()
    • TextResource.substores()
    • AnnotationDataSet.substores()
  • Fixes and tests for substores

v0.9.0

29 Aug 16:22
Compare
Choose a tag to compare
  • Upgraded to stam-rust 0.15.0 and stam-tools 0.8.0, STAM 1.1
  • Implemented support for substores
  • Adapted to changes in stam visualisation

v0.8.4

15 Jul 20:26
Compare
Choose a tag to compare
  • implemented split() from stam-tools
  • changed add_dataset() to load existing dataset if it already exists
  • added tests for merging stores

v0.8.3

10 Jul 12:00
Compare
Choose a tag to compare
  • added set_filename(), filename() and get_filename() for stand-off files, also added filename parameter on add_dataset() . This wasn't properly propagated to the Python binding yet. (annotation/stam#21)

v0.8.2

27 May 10:19
Compare
Choose a tag to compare
  • Updated against stam-rust v0.14.1 (minor bugfix release)

v0.8.1

26 May 16:07
Compare
Choose a tag to compare
  • Updated against stam-rust v0.14.0 and now also stam-tools v0.7.1
  • adapted to changed in API regarding TextSelectionOperator::Precedes and Succeeds (now allowing whitespace) (annotation/stam-rust#17)

v0.8.0

14 May 10:48
Compare
Choose a tag to compare
  • Updated against stam-rust v0.13.0 and now also stam-tools v0.7.0
  • The AnnotationStore.query() method can by default now handle mutable queries (ADD,DELETE) as well, pass readonly=True to force old read-only behaviour.
  • Implemented AnnotationStore.remove() method for deletion
  • Implement AnnotationStore.view() to visualize annotations in HTML or ansi text, this binds with stam-tools (stam view) (#11)
  • Tutorial: updated to show new remove() and view() methods

v0.7.0

28 Mar 11:04
Compare
Choose a tag to compare
  • Updated against stam-rust v0.12.0
  • added TextResource/TextSelection segmentation() method
  • Implemented TextResource.len() and TextSelection.len() as more pythonic versions of textlen()