Skip to content

Commit

Permalink
Merge branch 'hotfix/1.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
emfomy committed Apr 9, 2023
2 parents 9ca9f04 + 4d30e5a commit 65f47ad
Show file tree
Hide file tree
Showing 48 changed files with 208 additions and 48 deletions.
133 changes: 133 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
.venv
activate

# Docs
docs/_api/
docs/_build/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Installation via Pip
.. attention::
To use CkipClassic Parser Client backend, please

#. Register an account at http://parser.iis.sinica.edu.tw/v1/reg.exe
#. Register an account at http://parser.iis.sinica.edu.tw/v1/reg.php
#. Set the username and password in the pipeline's options:

.. code-block:: python
Expand All @@ -143,7 +143,7 @@ License
|GPL-3.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>`__.
Copyright (c) 2018-2023 `CKIP Lab <https://ckip.iis.sinica.edu.tw>`__ under the `GPL-3.0 License <https://www.gnu.org/licenses/gpl-3.0.html>`__.
.. |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 @@ -7,10 +7,10 @@

__author_name__ = 'Mu Yang'
__author_email__ = '[email protected]'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'

__title__ = 'CKIPNLP'
__version__ = '1.0.2'
__version__ = '1.0.3'
__description__ = 'CKIP CoreNLP'
__license__ = 'GPL-3.0'

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

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

from .text 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 @@ -6,7 +6,7 @@
"""

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__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 @@ -6,7 +6,7 @@
"""

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

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

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

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

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

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

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

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

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

from .base import (
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 @@ -6,5 +6,5 @@
"""

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__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 @@ -6,7 +6,7 @@
"""

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'


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 @@ -6,7 +6,7 @@
"""

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

from abc import (
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/data/conparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# pylint: disable=missing-docstring

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__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 @@ -6,7 +6,7 @@
"""

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

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

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

from abc import (
Expand Down
4 changes: 2 additions & 2 deletions ckipnlp/driver/classic.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

from abc import (
Expand Down Expand Up @@ -252,7 +252,7 @@ class CkipClassicConParserClient(_CkipClassicConParser):
Notes
-----
Please register an account at http://parser.iis.sinica.edu.tw/v1/reg.exe and
Please register an account at http://parser.iis.sinica.edu.tw/v1/reg.php and
set the environment variables ``$CKIPPARSER_USERNAME`` and ``$CKIPPARSER_PASSWORD``.
.. method:: __call__(*, ws, pos)
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/driver/coref.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__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 @@ -6,7 +6,7 @@
"""

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__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 @@ -6,7 +6,7 @@
"""

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

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

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

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

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

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

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

from collections.abc import (
Expand Down
2 changes: 1 addition & 1 deletion ckipnlp/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"""

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__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 @@ -8,7 +8,7 @@
# pylint: disable=missing-docstring

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

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

__author__ = 'Mu Yang <http://muyang.pro>'
__copyright__ = '2018-2020 CKIP Lab'
__copyright__ = '2018-2023 CKIP Lab'
__license__ = 'GPL-3.0'

import logging as _logging
Expand Down
8 changes: 8 additions & 0 deletions docs/main/tag.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ Part-of-Speech Tags
:widths: 50 50
:header-rows: 1

Named Entity Recognition Tags
-----------------------------

.. csv-table::
:file: ./tag/ner.csv
:widths: 50 50
:header-rows: 1

Constituency Parsing Tags
-------------------------

Expand Down
Loading

0 comments on commit 65f47ad

Please sign in to comment.