diff --git a/README.rst b/README.rst index 3ffb58d..2b13a91 100644 --- a/README.rst +++ b/README.rst @@ -163,6 +163,9 @@ Specifically not supported (yet), non-exhaustive list: * Contextual information * Feature structures (````, ````) +FoLiA to STAM +^^^^^^^^^^^^^^^^^^^^^^^^^^ + FoLiA to Salt ^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -170,7 +173,8 @@ FoLiA to Salt `Salt `_ is a graph based annotation model that is designed to act as an intermediate format in the conversion between various annotation formats. It is used by the conversion tool `Pepper `_. Our FoLiA to Salt converter, however, is a standalone tool as part of these FoLiA tools, rather than integrated into pepper. You can use ``folia2salt`` to convert FoLiA XML to Salt XML and subsequently use Pepper to do conversions to other formats such as TCF, PAULA, TigerXML, GraF, Annis, etc... (there is no guarantee though that everything can be preserved accurately in each conversion). -The current state of this conversion is summarised below: +The current state of this conversion is summarised below, it is however not +likely that this particular tool will be developed any further: * Conversion of FoLiA tokens to salt SToken nodes * The converter only supports tokenised FoLiA documents @@ -205,3 +209,5 @@ Our Salt conversion tries to preserve as much of the FoLiA as possible, we exten specifying namespaces to hold and group the annotation type and set of an annotation. SLabel elements with the same namespace should often be considered together. + + diff --git a/foliatools/folia2stam.py b/foliatools/folia2stam.py index 2afab45..225933e 100644 --- a/foliatools/folia2stam.py +++ b/foliatools/folia2stam.py @@ -6,9 +6,8 @@ import os import argparse import glob -from collections import OrderedDict from foliatools import VERSION as TOOLVERSION -from typing import Generator, Optional +from typing import Generator import folia.main as folia import stam