-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d13c3d2
commit fd712ff
Showing
3 changed files
with
20 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters