-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from aimakerspace/dev
Changes for 0.0.1 release
- Loading branch information
Showing
51 changed files
with
81 additions
and
7,719 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,70 +1,26 @@ | ||
# SG-NLP | ||
|
||
Models from Singapore's NLP research community. | ||
Machine learning models from Singapore's natural language processing (NLP) research community. | ||
|
||
## Development Requirements | ||
`sgnlp` is a Python package that allows you to easily get started on using various (NLP) models implemented using the | ||
Pytorch and Transfromers frameworks. | ||
|
||
* Python >= 3.8 | ||
|
||
```sh | ||
pip install -r requirements_dev.txt | ||
``` | ||
We have an accompanying [demo site](https://sgnlp.aks.aisingapore.net/) where you can interact with our models and get a | ||
better understanding on how they work. | ||
|
||
## Running Unittests | ||
## Installation | ||
|
||
Unit and integration tests scripts are all stored in the `tests` folder. | ||
|
||
In order for unit tests in `Tests` folder to import the modules properly, please add the root of the repository to the | ||
Python path variable prior to running test cases. | ||
|
||
For Linux | ||
* Python >= 3.8 | ||
|
||
```sh | ||
export PYTHONPATH=. | ||
``` | ||
|
||
For Windows | ||
|
||
```sh | ||
set PYTHONPATH=%cd% | ||
pip install sgnlp | ||
``` | ||
|
||
Below is the example to execute all test cases in the `tests` folder, commands are executed at the root | ||
of the repository. | ||
|
||
Using Pytest package | ||
|
||
```sh | ||
# Run all | ||
pytest tests/ | ||
|
||
# Run slow tests only | ||
pytest -m slow tests/ | ||
## Documentation | ||
|
||
# Run non-slow tests only | ||
pytest -m 'not slow' tests/ | ||
|
||
# Run single script | ||
pytest <path/to/script> | ||
``` | ||
|
||
## Publishing to PyPI | ||
|
||
- Requires `twine` | ||
|
||
- Increment version number in `setup.py` | ||
|
||
```sh | ||
rm -rf build dist sgnlp.egg-info/ | ||
|
||
python setup.py sdist bdist_wheel | ||
|
||
twine check dist/* | ||
|
||
twine upload dist/* | ||
``` | ||
Visit our [documentation](https://sgnlp.aks.aisingapore.net/docs/) for tutorials. | ||
|
||
## License | ||
|
||
Code and models from this project is released under the MIT License unless otherwise stated. | ||
If a model's code is under a separate license, it can be found in the respective model's folder. | ||
Code and models from this project are released under the MIT License unless otherwise stated. If a model's code is under | ||
a separate license, it can be found in the respective model's folder. |
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
## Development Requirements | ||
|
||
* Python >= 3.8 | ||
|
||
```sh | ||
pip install -r requirements_dev.txt | ||
``` | ||
|
||
## Running Unittests | ||
|
||
Unit and integration tests scripts are all stored in the `tests` folder. | ||
|
||
In order for unit tests in `Tests` folder to import the modules properly, please add the root of the repository to the | ||
Python path variable prior to running test cases. | ||
|
||
For Linux | ||
|
||
```sh | ||
export PYTHONPATH=. | ||
``` | ||
|
||
For Windows | ||
|
||
```sh | ||
set PYTHONPATH=%cd% | ||
``` | ||
|
||
Below is the example to execute all test cases in the `tests` folder, commands are executed at the root | ||
of the repository. | ||
|
||
Using Pytest package | ||
|
||
```sh | ||
# Run all | ||
pytest tests/ | ||
|
||
# Run slow tests only | ||
pytest -m slow tests/ | ||
|
||
# Run non-slow tests only | ||
pytest -m 'not slow' tests/ | ||
|
||
# Run single script | ||
pytest <path/to/script> | ||
``` | ||
|
||
## Publishing to PyPI | ||
|
||
- Requires `twine` | ||
|
||
- Increment version number in `setup.py` | ||
|
||
```sh | ||
rm -rf build dist sgnlp.egg-info/ | ||
|
||
python setup.py sdist bdist_wheel | ||
|
||
twine check dist/* | ||
|
||
twine upload dist/* | ||
``` |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.