Skip to content

Commit

Permalink
Merge branch 'master' of github.com:proycon/pynlpl
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko van der Sloot authored and Ko van der Sloot committed Apr 11, 2017
2 parents 4087fe3 + 273ebc6 commit 24be3db
Show file tree
Hide file tree
Showing 66 changed files with 7 additions and 24 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ before_install:
- sudo apt-get update -qq
- sudo apt-get install -y xmldiff
- pip install -U setuptools
install:
install:
- pip install -r requirements.txt
- python setup.py install
script:
- bash tests/test.sh
script:
- bash pynlpl/tests/test.sh
2 changes: 1 addition & 1 deletion __init__.py → pynlpl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
The library is divided into several packages and modules. It is designed for Python 2.6 and upwards. Including Python 3."""

VERSION = "1.1.8"
VERSION = "1.1.9"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion formats/folia.py → pynlpl/formats/folia.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,8 @@ def text(self, cls='current', retaintokenisation=False, previousdelimiter="",str
delimiter = ""
s = ""
for e in self:
if e.PRINTABLE and not isinstance(e, TextContent) and not isinstance(e, String):
#was: e.PRINTABLE and not isinstance(e, TextContent) and not isinstance(e, String):
if isinstance(e, (AbstractStructureElement, Correction, AbstractSpanAnnotation)): #AbstractSpanAnnotation is needed when requesting text() on nested span annotations
try:
s += e.text(cls,retaintokenisation, delimiter,False,correctionhandling)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 1 addition & 19 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,6 @@
import sys
from setuptools import setup, find_packages

if os.path.dirname(__file__) != "":
os.chdir(os.path.dirname(__file__))
if not os.path.exists('pynlpl'):
print("Preparing build",file=sys.stderr)
if os.path.exists('build'):
os.system('rm -Rf build')
os.mkdir('build')
os.chdir('build')
if not os.path.exists('pynlpl'): os.mkdir('pynlpl')
os.system('cp -Rpf ../* pynlpl/ 2> /dev/null')
os.system('mv -f pynlpl/setup.py pynlpl/setup.cfg .')
os.system('cp -f pynlpl/README.rst .')
os.system('cp -f pynlpl/LICENSE .')
os.system('cp -f pynlpl/MANIFEST.in .')

#Do not include unfininished WIP modules:
os.system('rm -f pynlpl/formats/colibri.py pynlpl/formats/alpino.py pynlpl/foliaprocessing.py pynlpl/grammar.py')

def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()

Expand All @@ -41,7 +23,7 @@ def read(fname):

setup(
name = "PyNLPl",
version = "1.1.8", #edit version in __init__.py as well and ensure tests/folia.py FOLIARELEASE points to the right version!
version = "1.1.9", #edit version in __init__.py as well and ensure tests/folia.py FOLIARELEASE points to the right version!
author = "Maarten van Gompel",
author_email = "proycon@anaproy.nl",
description = ("PyNLPl, pronounced as 'pineapple', is a Python library for Natural Language Processing. It contains various modules useful for common, and less common, NLP tasks. PyNLPl contains modules for basic tasks, clients for interfacting with server, and modules for parsing several file formats common in NLP, most notably FoLiA."),
Expand Down

0 comments on commit 24be3db

Please sign in to comment.