Skip to content

Commit

Permalink
GH-351: Release v1.3.0-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
rain1024 authored Nov 29, 2020
2 parents 2e9d677 + f208cb3 commit d31a7a7
Show file tree
Hide file tree
Showing 28 changed files with 3,920 additions and 6 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/issue-manager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Issue Manager

on:
schedule:
- cron: "0 0 * * *"
issue_comment:
types:
- created
- edited
issues:
types:
- labeled

jobs:
issue-manager:
runs-on: ubuntu-latest
steps:
- uses: tiangolo/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
config: >
{
"resolved": {
"delay": "P7D",
"message": "This issue has been automatically closed because it was answered and there was no follow-up discussion.",
"remove_label_on_comment": true,
"remove_label_on_close": true
}
}
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
History
================================================================================

Current
--------------------------------------------------------------------------------

* Try to use Github Actions (GH-353)
* Copy dependece_parser module from supar (GH-157)

1.2.3 (2020-11-28)
--------------------------------------------------------------------------------

Expand Down
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Underthesea - Vietnamese NLP Toolkit

**underthesea** is a suite of open source Python modules, data sets and tutorials supporting research and development in Vietnamese Natural Language Processing.

💫 **Version 1.3.0a0 out now!** `Underthesea meet deep learning! <https://github.com/undertheseanlp/underthesea/issues/359>`_

+-----------------+------------------------------------------------------------------------------------------------+
| Free software | GNU General Public License v3 |
+-----------------+------------------------------------------------------------------------------------------------+
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
'scikit-learn>=0.20,<0.22',
'unidecode',
'seqeval',
'PyYAML'
'PyYAML',
'torch>=1.1.0,<=1.5.1',
'transformers>=3.5.0,<=3.5.1'
]

tests_require = [
Expand Down
2 changes: 1 addition & 1 deletion underthesea/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.3
1.3.0-alpha
37 changes: 36 additions & 1 deletion underthesea/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,43 @@
except Exception:
pass

###########################################################
# Initialize
###########################################################
import torch
import logging.config

# global variable: device for torch
device = None
if torch.cuda.is_available():
device = torch.device("cuda:0")
else:
device = torch.device("cpu")

logging.config.dictConfig(
{
"version": 1,
"disable_existing_loggers": False,
"formatters": {"standard": {"format": "%(asctime)-15s %(message)s"}},
"handlers": {
"console": {
"level": "INFO",
"class": "logging.StreamHandler",
"formatter": "standard",
"stream": "ext://sys.stdout",
}
},
"loggers": {
"underthesea": {"handlers": ["console"], "level": "INFO", "propagate": False}
},
}
)

logger = logging.getLogger("underthesea")

__all__ = [
'sent_tokenize',
'word_tokenize', 'pos_tag', 'chunk', 'ner',
'classify', 'sentiment'
'classify', 'sentiment',
'logger', 'device'
]
Loading

0 comments on commit d31a7a7

Please sign in to comment.