Skip to content

Commit

Permalink
ERRANT v2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Bryant committed May 17, 2020
1 parent 1a56544 commit 9992e0a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
@@ -1,6 +1,10 @@
# Changelog

This log describes all the significant changes made to ERRANT since its release.
This log describes all the changes made to ERRANT since its release.

## v2.2.1 (17-05-20)

Fixed key error in the classifier for rare spaCy 2 POS tags: _SP, BES, HVS.

## v2.2.0 (06-05-20)

Expand Down
4 changes: 2 additions & 2 deletions README.md
@@ -1,4 +1,4 @@
# ERRANT v2.2.0
# ERRANT v2.2.1

This repository contains the grammatical ERRor ANnotation Toolkit (ERRANT) described in:

Expand Down Expand Up @@ -43,7 +43,7 @@ This will create and activate a new python3 environment called `errant_env` in t

ERRANT was originally designed to work with spaCy v1.9.0 and works best with this version. SpaCy v1.9.0 does not work with Python >= 3.7 however, and so we were forced to update ERRANT to be compatible with spaCy 2. Since spaCy 2 uses a neural system to trade speed for accuracy (see the [official spaCy benchmarks](https://spacy.io/usage/facts-figures#spacy-models)), this means ERRANT v2.2.0 is **over 4x slower** than ERRANT v2.1.0.

There is no way around this if you use Python >= 3.7, but we recommend installing ERRANT v2.1.0 if you use Python < 3.7.
There is no way around this if you use Python >= 3.7, but *we recommend installing ERRANT v2.1.0 if you use Python < 3.7*.
```
pip3 install errant==2.1.0
```
Expand Down
2 changes: 1 addition & 1 deletion errant/__init__.py
Expand Up @@ -3,7 +3,7 @@
from errant.annotator import Annotator

# ERRANT version
__version__ = '2.2.0'
__version__ = '2.2.1'

# Load an ERRANT Annotator object for a given language
def load(lang, nlp=None):
Expand Down
3 changes: 3 additions & 0 deletions errant/en/classifier.py
Expand Up @@ -27,6 +27,9 @@ def load_pos_map(path):
# Add some spacy PTB tags not in the original mapping.
map_dict['""'] = "PUNCT"
map_dict["SP"] = "SPACE"
map_dict["_SP"] = "SPACE"
map_dict["BES"] = "VERB"
map_dict["HVS"] = "VERB"
map_dict["ADD"] = "X"
map_dict["GW"] = "X"
map_dict["NFP"] = "X"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -10,7 +10,7 @@

setup(
name = "errant",
version = "2.2.0",
version = "2.2.1",
license = "MIT",
description = "The ERRor ANnotation Toolkit (ERRANT). Automatically extract and classify edits in parallel sentences.",
long_description = readme,
Expand Down

0 comments on commit 9992e0a

Please sign in to comment.