Releases: annotation/stam-tools
Releases · annotation/stam-tools
v0.6.1
v0.6.0
This release introduces some major refactoring, many fixes, and some new tools:
- Upgraded to use stam-rust v0.11.0
stam align
: tool that aligns identical parts of two (sub)texts using Smith Waterman/Needleman Wunsch. Outputs a transposition following the STAM Transpose specification.stam transpose
: new tool implementing the ability to map annotations from one coordinate system to another, given a transposition (e.g. like produced bystam align
).stam export
: added--alignments
parameter that outputs transpositions in TSV formatstam batch
orstam shell
: a tool to invoke stam tools subcommands in sequence. his is a good way to avoid the initialization/serialisation overhead that would normally come from invoking commands one-by-one on the command line. It also works for (limited) interactive use.- Loading and merging multiple annotation stores was revised, fixed and applied more consistently across all tools.
stam view
: Fixes in newline visualisation and added--collapse
parameter to hide tags when first loading html.
Removed:
stam save
is no longer needed, just usestam init
/stam annotate
.
v0.5.0
- Made
stam-tools
available as a library alongside thestam
CLI tool. Note however that this Rust API is not considered stable yet and may be subject to change. stam query
: implemented output to W3C Web Annotation via--format w3anno
parameter.stam view
:- make tags togglable
- show popups when tags are hidden
stam align
: new tool to align two texts (or parts thereof) using Smith Waterman or Needleman Wunsch, results in transposition annotations complying to the STAM transpose specificationstam query
: allow outputting existing transpositions or other alignments using the--alignments
parameter. This outputs to a simple TSV format and is currently limited to two-sided alignments (rather than multiple).
v0.4.0
- Added
stam view
tool to visualize annotations in HTML or ANSI text given STAMQL queries (#2) - Revised
stam query
andstam print
to use STAMQL queries. stam export
is now just an alias forstam query
.stam query
default column output changed and is auto-detected now based on output type, may now also output row numbers and query variable names.- various tools now output temporary IDs if no public ID exists
- Added a
stam grep
tool to search by regular expression and return offsets (TSV) - Adapted to latest STAM library (v0.9.0)
- Improved documentation
v0.3.0
v0.2.0
- Renamed command
to-tsv
toexport
- Renamed command
to-text
toprint
- Implemented
import
command that imports from TSV files, with support for custom columns, automatic alignment with source text, and reconstructing source text from scratch #1 - export: added support for output custom columns corresponding to an AnnotationDataSet and DataKey
- Adapted to latest library (v0.7.0)
v0.1.3
v0.1.2
v0.1.1
v0.1.0
Initial release, builds on stam-rust 0.3.0 (in experimental stage, so these tools are as well).
This release introduces several tools to work with STAM:
- stam annotate - Add an annotation from a JSON file
- stam info - Return information regarding a STAM model.
- stam init - Initialize a new STAM annotationstore
- stam to-text - Print the text of any resources in the model.
- stam to-tsv - Convert STAM to a simple TSV (Tab Separated Values) format. This is not lossless but provides a decent view on the data.
- stam validate - Validate a STAM model.
- stam tag - Regular-expression based tagger