Skip to content

Commit

Permalink
update init file
Browse files Browse the repository at this point in the history
  • Loading branch information
kylepjohnson committed Mar 6, 2016
1 parent d13c3d2 commit fd712ff
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 66 deletions.
75 changes: 17 additions & 58 deletions cltk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,69 +1,28 @@
# Classical Language Toolkit (NLTK)
#
# Copyright (c) 2016 Kyle P. Johnson.
# Authors: Kyle P. Johnson.
# URL: <http://cltk.org/>
# For license information, see LICENSE

"""The Classical Language Toolkit (CLTK) offers natural language
processing support for Classical languages. See the webpage for
more information and documentation: http://cltk.org
"""
The Classical Language Toolkit (CLTK) offers natural language
processing support for Classical languages. CLTK is written
entirely in python.
The goals of the Classical Language Toolkit (CLTK) are to:
compile analysis-friendly corpora in a variety of Classical
languages
gather, improve, and generate linguistic data required for NLP
develop a free and open platform for generating reproducible,
scientific research that advances the study of the languages
and literatures of the ancient world.

See the webpage for more information and documentation:
http://cltk.org
"""
import sys
from pkg_resources import get_distribution

# //////////////////////////////////////////////////////
# Metadata
# //////////////////////////////////////////////////////

import sys
if sys.version_info[0] != 3:
raise ImportError("Python Version 3 or above is required for cltk.")
# We can check for exact versions too
raise ImportError('Python Version 3 or above is required for cltk.')

try:
__version__ = get_distribution('cltk').version
except:
print(sys.exc_info()[0],"occured.")
del sys
del get_distribution
__author__ = 'Kyle P. Johnson et al.'

if __doc__ is not None:
__doc__ += '\n@version: ' + __version__
__copyright__ = 'Copyright (c) 2016 Kyle P. Johnson. Distributed and Licensed under the MIT License.' # pylint: disable=line-too-long

# Copyright notice
__copyright__ = """\
Copyright (c) 2016 Kyle P. Johnson.
__description__ = __doc__

Distributed and Licensed under the MIT License.
"""
with open('LICENSE') as file_open:
__license__ = file_open.read()

__url__ = 'http://cltk.org'

__license__ = "MIT license"
# Description of the project.
__longdescr__ = """\
The Classical Language Toolkit (CLTK) offers natural language
processing support for Classical languages."""
__keywords__ = ['NLP', 'natural language processing',
'classical language', 'parsing', 'tagging',
'tokenizing', 'language', 'text analytics']
__url__ = "http://cltk.org/"
__version__ = get_distribution('cltk').version # pylint: disable=no-member

# Maintainer, authhor
__maintainer__ = "Kyle P. Johnson et al."
__author__ = __maintainer__
# rm these namespaces from memory, or these show up in dir(cltk)
del file_open
del get_distribution
del sys
7 changes: 1 addition & 6 deletions cltk/corpus/greek/beta_to_unicode.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""Converts legacy encodings into Unicode
TODO for replacer.py:
- add perseus-style iota subscript and diaeresis
- fix TLG diaeresis: εὐνοι+κῶς -> εὐνοϊκῶς (at Xen. Anab. 1.1.5, TLG0032.txt)
-- προί+δοιεν -> προΐδοιεν (for TLG, Xen Anab 1.8.20)
"""
"""Converts legacy encodings into Unicode."""

import regex

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
'pyuca'],
keywords=['nlp', 'nltk', 'greek', 'latin'],
license='MIT',
long_description="The Classical Language Toolkit (CLTK) is a framework for natural language processing for Classical languages.", # pylint: disable=C0301
long_description='The Classical Language Toolkit (CLTK) is a framework for natural language processing for Classical languages.', # pylint: disable=C0301
name='cltk',
packages=find_packages(),
url='https://github.com/cltk/cltk',
version='0.1.32',
version='0.1.33',
zip_safe=True,
test_suite='cltk.tests.test_cltk',
)

0 comments on commit fd712ff

Please sign in to comment.