Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed May 29, 2019
1 parent cf21cc2 commit dc1a7b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion folia/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""This package contains the FoLiA library for Python"""
LIBVERSION = "2.1.1"
LIBVERSION = "2.1.2"
5 changes: 4 additions & 1 deletion folia/foliaset.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,10 @@ def parsexml(Class, node, context_subsets=None):
context_subsets = []
for subnode in node:
if subnode.tag == '{' + NSFOLIA + '}subset':
context_subsets.append(subnode.attrib['id'])
if '{http://www.w3.org/XML/1998/namespace}id' in subnode:
context_subsets.append(subnode.attrib['{http://www.w3.org/XML/1998/namespace}id'])
elif 'id' in subnode:
context_subsets.append(subnode.attrib['id'])


classes = []
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def read(fname):

setup(
name = "FoLiA",
version = "2.1.1", #edit LIBVERSION in __init__.py as well
version = "2.1.2", #edit LIBVERSION in __init__.py as well
author = "Maarten van Gompel",
author_email = "proycon@anaproy.nl",
description = ("An extensive library for processing FoLiA documents. FoLiA stands for Format for Linguistic Annotation and is a very rich XML-based format used by various Natural Language Processing tools."),
Expand Down

0 comments on commit dc1a7b8

Please sign in to comment.