diff --git a/README.md b/README.md index 069b332..d9d06d0 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ Citations describing the annotations in this corpus (main STREUSLE papers in __b - [4] Jena D. Hwang, Archna Bhatia, Na-Rae Han, Tim O’Gorman, Vivek Srikumar, and Nathan Schneider. Double trouble: the problem of construal in semantic annotation of adpositions. _Proceedings of the Sixth Joint Conference on Lexical and Computational Semantics_, Vancouver, British Columbia, Canada, August 3–4, 2017. -- [5] Nathan Schneider, Jena D. Hwang, Vivek Srikumar, Archna Bhatia, Na-Rae Han, Tim O'Gorman, Sarah R. Moeller, Omri Abend, Adi Shalev, Austin Blodgett, and Jakob Prange (June 14, 2022). Adposition and Case Supersenses v2.6: Guidelines for English. arXiv preprint. +- [5] Nathan Schneider, Jena D. Hwang, Vivek Srikumar, Archna Bhatia, Na-Rae Han, Tim O'Gorman, Sarah R. Moeller, Omri Abend, Adi Shalev, Austin Blodgett, and Jakob Prange (June 15, 2022). Adposition and Case Supersenses v2.6: Guidelines for English. arXiv preprint. - [6] Austin Blodgett and Nathan Schneider (2018). Semantic supersenses for English possessives. _Proceedings of the 11th International Conference on Language Resources and Evaluation_, Miyazaki, Japan, May 9–11, 2018. @@ -137,7 +137,7 @@ The 4.0 release [7] updates the inventory and application of preposition superse ### Detailed changes - - STREUSLE 4.5: 2022-06-14. + - STREUSLE 4.5: 2022-06-15. * Update SNACS annotations to the v2.6 standard (automatically rename p.Causer -> p.Force and p.RateUnit -> p.SetIteration). * Update UD to v2.10. This affects many UPOS tags and lemmas, especially for proper names. The UD update also introduces lines encoding multiword tokens (not to be confused with multiword *expressions*) for clitics. - STREUSLE 4.4: 2020-11-04. diff --git a/releaseutil/upgrade_snacs_2.5_to_2.6.py b/releaseutil/upgrade_snacs_2.5_to_2.6.py new file mode 100755 index 0000000..2897d68 --- /dev/null +++ b/releaseutil/upgrade_snacs_2.5_to_2.6.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python3 +"""Used for STREUSLE v4.5: Upgrade SNACS labels in provided .conllulex file from version 2.5 to 2.6, which involves renaming 2 labels.""" +import fileinput +for ln in fileinput.input(): + if '\t' not in ln: + print(ln, end='') + continue + parts = ln.split('\t') + parts[13] = parts[13].replace('p.RateUnit','p.SetIteration').replace('p.Causer','p.Force') + parts[14] = parts[14].replace('p.RateUnit','p.SetIteration').replace('p.Causer','p.Force') + parts[18] = parts[18].replace('p.RateUnit','p.SetIteration').replace('p.Causer','p.Force') + print('\t'.join(parts), end='') diff --git a/setup.py b/setup.py index 047b6f0..f416e50 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="streusle", - version="4.4", + version="4.5", author="Nathan Schneider", author_email="nathan.schneider@georgetown.edu", description="STREUSLE: a corpus with comprehensive lexical semantic annotation (multiword expressions, supersenses)",