diff --git a/depedit/depedit.py b/depedit/depedit.py index c8df24d..9c3d0b9 100644 --- a/depedit/depedit.py +++ b/depedit/depedit.py @@ -22,7 +22,7 @@ import io from six import iteritems, iterkeys -__version__ = "3.4.0.0" +__version__ = "3.4.0.1" ALIASES = {"form":"text","upostag":"pos","xpostag":"cpos","feats":"morph","deprel":"func","deps":"head2","misc":"func2", "xpos": "cpos","upos":"pos"} @@ -996,7 +996,7 @@ def execute_action(self, result_sets, action_list, transformation): new_vals_keys[this_key].add(this_val) if old_val != "_" and isinstance(old_val,str): # Some values already exist kv = [] - for ov in sorted(old_val.split("|")): + for ov in sorted(old_val.split("|")+new_vals): this_key, this_val = ov.split("=") if this_key not in new_vals_keys: # Else this needs to be overwritten kv.append(ov) diff --git a/setup.py b/setup.py index d35805f..a4f300e 100644 --- a/setup.py +++ b/setup.py @@ -3,14 +3,14 @@ setup( name = 'depedit', packages = ['depedit'], - version = '3.4.0.0', + version = '3.4.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/3.4.0.0', + download_url = 'https://github.com/amir-zeldes/depedit/releases/tag/3.4.0.1', keywords = ['NLP', 'parsing', 'syntax', 'dependencies', 'dependency', 'tree', 'treebank', 'conll', 'conllu', 'ud', 'enhanced'], classifiers = ['Programming Language :: Python', 'Programming Language :: Python :: 2',