From a9036d2bacffe85d61dc63372fcd85356aa329b2 Mon Sep 17 00:00:00 2001 From: amir-zeldes Date: Tue, 25 Feb 2020 10:21:05 -0500 Subject: [PATCH 1/2] bugfix --- depedit/depedit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/depedit/depedit.py b/depedit/depedit.py index 8e69f8e..6674b00 100644 --- a/depedit/depedit.py +++ b/depedit/depedit.py @@ -321,6 +321,7 @@ def read_config_file(self, config_file, clear_transformations=False): line_num = 0 for instruction in config_file: + instruction = instruction.strip() line_num += 1 if len(instruction)>0 and not instruction.startswith(";") and not instruction.startswith("#") \ or instruction.startswith("#S:"): From 35467ff90d2dc31a6ae7265266c14297cdb30650 Mon Sep 17 00:00:00 2001 From: amir-zeldes Date: Tue, 25 Feb 2020 10:22:15 -0500 Subject: [PATCH 2/2] setup v2.2.0.1 --- depedit/depedit.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/depedit/depedit.py b/depedit/depedit.py index 6674b00..eda8a52 100644 --- a/depedit/depedit.py +++ b/depedit/depedit.py @@ -22,7 +22,7 @@ import io from six import iteritems -__version__ = "2.2.0" +__version__ = "2.2.0.1" ALIASES = {"form":"text","upostag":"pos","xpostag":"cpos","feats":"morph","deprel":"func","deps":"head2","misc":"func2", "xpos": "cpos","upos":"pos"} diff --git a/setup.py b/setup.py index 343c232..d71f413 100644 --- a/setup.py +++ b/setup.py @@ -3,14 +3,14 @@ setup( name = 'depedit', packages = ['depedit'], - version = '2.2.0', + version = '2.2.0.1', description = 'A simple configurable tool for manipulating dependency trees', author = 'Amir Zeldes', author_email = 'amir.zeldes@georgetown.edu', url = 'https://github.com/amir-zeldes/depedit', install_requires=["six"], license='Apache License, Version 2.0', - download_url = 'https://github.com/amir-zeldes/depedit/releases/tag/2.2.0', + download_url = 'https://github.com/amir-zeldes/depedit/releases/tag/2.2.0.1', keywords = ['NLP', 'parsing', 'syntax', 'dependencies', 'dependency', 'tree', 'treebank', 'conll', 'conllu', 'ud'], classifiers = ['Programming Language :: Python', 'Programming Language :: Python :: 2',