Releases: annotation/stam-tools
Releases · annotation/stam-tools
v0.7.0
- Updated against stam-rust v0.13.0
stam fromxml
- New subcommand to convert XML-based formats (like xHTML, TEI) to STAM. Effectively 'untangling' the text and their inline annotations to full stand-off. This tool is configurable via an external configuration that defines a mapping of XML elements and
attributes to STAM annotations and annotationdata.stam view
- New simplified default style
- Support for zero-width annotations
- New
@STYLE
attribute to associate an arbitrary CSS class with a query result - New
@HIDE
attribute to hide highlight underlines, and omit from the legend. - Major refactoring and performance improvement (#10)
- Major improvements in whitespace handling for HTML output
stam batch
- Batch mode now allows redirecting output to file using shell-like>
and>>
operators. (#13)
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)