Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
emfomy committed Jan 20, 2021
2 parents 56165ae + 2a4c0a2 commit 29b8279
Show file tree
Hide file tree
Showing 48 changed files with 750 additions and 64 deletions.
678 changes: 673 additions & 5 deletions LICENSE

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TWINE = twine
TOX = tox
LINT = pylint --rcfile=./.pylintrc

.PHONY: all check dist sdist test tox tox-v tox-report lint doc upload clean
.PHONY: all check dist sdist test tox tox-v tox-vv tox-report lint doc upload clean

all: dist check test

Expand All @@ -21,18 +21,18 @@ lint:
check:
$(TWINE) check dist/*

tox tox-v tox-report:
( cd test ; make $@ )
tox tox-v tox-vv tox-report:
( cd test && make $@ )

doc:
( cd docs ; make clean ; make html )
( cd docs && make clean && make html )

upload: dist check
ls dist/*
$(TWINE) upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose

clean:
- ( cd docs ; make clean )
- ( cd test ; make clean )
- ( cd docs && make clean )
- ( cd test && make clean )
- $(PY) setup.py clean -a
- $(RM) build dist *.egg-info __pycache__
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ https://ckipnlp.readthedocs.io/
:target: https://ckipnlp.readthedocs.io

Online Demo
^^^^^^^^^^^^^^
^^^^^^^^^^^

https://ckip.iis.sinica.edu.tw/service/corenlp

Expand Down Expand Up @@ -130,14 +130,14 @@ Installation via Pip
Detail
------

See https://ckipnlp.readthedocs.io/ for API details.
See https://ckipnlp.readthedocs.io/ for full documentation.

License
-------

|CC BY-NC-SA 4.0|
|GPL-3.0|

Copyright (c) 2018-2020 `CKIP Lab <https://ckip.iis.sinica.edu.tw>`__ under the `CC BY-NC-SA 4.0 License <http://creativecommons.org/licenses/by-nc-sa/4.0/>`__.
Copyright (c) 2018-2020 `CKIP Lab <https://ckip.iis.sinica.edu.tw>`__ under the `GPL-3.0 License <https://www.gnu.org/licenses/gpl-3.0.html>`__.

.. |CC BY-NC-SA 4.0| image:: https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png
:target: http://creativecommons.org/licenses/by-nc-sa/4.0/
.. |GPL-3.0| image:: https://www.gnu.org/graphics/gplv3-with-text-136x68.png
:target: https://www.gnu.org/licenses/gpl-3.0.html
4 changes: 2 additions & 2 deletions ckipnlp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
__copyright__ = '2018-2020 CKIP Lab'

__title__ = 'CKIPNLP'
__version__ = '0.10.0'
__version__ = '1.0.0'
__description__ = 'CKIP CoreNLP'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

__url__ = 'https://ckipnlp.readthedocs.io'
__download_url__ = __url__+'/tarball/'+__version__
2 changes: 1 addition & 1 deletion ckipnlp/container/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from .text import *
from .seg import *
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/container/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

import json as _json

Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/container/coref.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from typing import (
NamedTuple as _NamedTuple,
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/container/ner.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from typing import (
NamedTuple as _NamedTuple,
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/container/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from typing import (
NamedTuple as _NamedTuple,
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/container/seg.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from .base import (
BaseList as _BaseList,
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/container/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from .base import (
BaseList0 as _BaseList0
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/container/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'
2 changes: 1 addition & 1 deletion ckipnlp/container/util/parse_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'


from collections import (
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/container/util/wspos.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from abc import (
ABCMeta as _ABCMeta,
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/data/conparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

################################################################################################################################

Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/driver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from .tagger import (
CkipTaggerWordSegmenter,
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/driver/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from abc import (
ABCMeta as _ABCMeta,
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/driver/classic.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from abc import (
abstractmethod as _abstractmethod,
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/driver/coref.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

import numpy as _np

Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/driver/ss.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

import re as _re

Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/driver/tagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from ckipnlp.container import (
TextParagraph as _TextParagraph,
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/pipeline/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from .kernel import (
CkipPipeline,
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/pipeline/coref.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from collections.abc import (
Mapping as _Mapping,
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/pipeline/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from collections.abc import (
Mapping as _Mapping,
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'
2 changes: 1 addition & 1 deletion ckipnlp/util/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

import os as _os
import shutil as _shutil
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/util/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

import logging as _logging

Expand Down
19 changes: 17 additions & 2 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
/* header */

h1 {
font-size: 250%;

display: inline-block;
border-bottom: 3px solid #2980b9;
}

/* content */

.rst-content p.rubric {
font-size: 125%;
font-size: 125%;
}

.rst-content table.docutils th p {
margin-bottom: 0;
}

.rst-content tt.literal, .rst-content tt.literal, .rst-content code.literal {
color: #0057A9;
}

.wy-nav-content {
max-width: 1280px;
max-width: 1280px;
}
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from setuptools import setup, find_namespace_packages
import ckipnlp as about
Expand Down Expand Up @@ -36,7 +36,7 @@ def main():
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3 :: Only',
'License :: Free for non-commercial use',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: POSIX :: Linux',
'Natural Language :: Chinese (Traditional)',
],
Expand Down
3 changes: 3 additions & 0 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ tox:
tox-v:
NO_COV= $(TOX) -f py36,py37,py38 -- -v

tox-vv:
NO_COV= $(TOX) -f py36 -- -vv

tox-report:
- $(TOX) -p -f clean,py36,report -- --cov-append
python3.7 -m http.server --directory .test/htmlcov/ 3000
Expand Down
2 changes: 1 addition & 1 deletion test/ext/ckip_classic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'
2 changes: 1 addition & 1 deletion test/ext/ckip_classic/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion test/ext/ckip_classic/ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion test/ext/ckiptagger/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion test/script/container/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

import abc
import json
Expand Down
2 changes: 1 addition & 1 deletion test/script/container/test_coref.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from _base import _TestBase
from ckipnlp.container.coref import *
Expand Down
2 changes: 1 addition & 1 deletion test/script/container/test_ner.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__license__ = 'CC BY-NC-SA 4.0'
__license__ = 'GPL-3.0'

from _base import _TestBase
from ckipnlp.container.ner import *
Expand Down
Loading

0 comments on commit 29b8279

Please sign in to comment.