Skip to content

Commit 0abe698

Browse files
authored
Merge pull request #274 from JohnSnowLabs/release/1.0.0
Release v1.0.0
2 parents d86d2bf + 7f8ee57 commit 0abe698

1,133 files changed

Lines changed: 333422 additions & 103172 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: build
5+
6+
on:
7+
push:
8+
branches:
9+
- "main"
10+
11+
pull_request:
12+
branches:
13+
- "release/*"
14+
- "main"
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
python-version: ["3.7","3.8", "3.9","3.10"]
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
- name: Set up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v3
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
31+
- name: Create virtual environment
32+
run: python -m venv venv
33+
34+
- name: Activate virtual environment
35+
run: |
36+
ls
37+
source ./venv/bin/activate
38+
39+
- name: Install dependencies
40+
run: |
41+
python -m pip install --upgrade pip
42+
python -m pip install flake8 pytest
43+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
44+
- name: Lint with flake8
45+
run: |
46+
# stop the build if there are Python syntax errors or undefined names
47+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=venv
48+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
49+
flake8 . --count --exit-zero --exclude=venv --max-complexity=10 --max-line-length=127 --statistics
50+
- name: Test with pytest
51+
run: |
52+
python -m spacy download en_core_web_sm
53+
pytest

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ lib64/
2323
parts/
2424
sdist/
2525
var/
26+
.sass-cache/
27+
_site/
2628
wheels/
2729
share/python-wheels/
2830
*.egg-info/
@@ -198,4 +200,6 @@ docs/website/_site/**
198200
docs/website/.sass-cache/**
199201

200202
tst_shortcut_sd/
201-
src/*/resources/*.classes
203+
src/*/resources/*.classes
204+
205+
_site\

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<p align="center">
44
<a href="https://github.com/JohnSnowLabs/nlptest/actions" alt="build">
5-
<img src="https://github.com/JohnSnowLabs/nlptest/workflows/build_and_test.yml/badge.svg" /></a>
5+
<img src="https://github.com/JohnSnowLabs/nlptest/workflows/build/badge.svg" /></a>
66
<a href="https://github.com/JohnSnowLabs/nlptest/releases" alt="Current Release Version">
77
<img src="https://img.shields.io/github/v/release/JohnSnowLabs/nlptest.svg?style=flat-square&logo=github" /></a>
88
<a href="https://github.com/JohnSnowLabs/nlptest/blob/master/LICENSE" alt="License">

conda/conda_build_config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python:
2+
- 3.7
3+
- 3.8
4+
- 3.9

conda/meta.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package:
2+
name: "nlptest"
3+
version: 1.0.0
4+
5+
app:
6+
entry: nlptest
7+
summary: Deliver safe & effective NLP models in a few lines of code.
8+
9+
source:
10+
fn: nlptest-1.0.0rc1.tar.gz
11+
url: https://files.pythonhosted.org/packages/ff/ba/7ac40c507bd07d718e32670e72537bc2bd73e6882b0a5505c1ec74213d58/nlptest-1.0.0rc1.tar.gz
12+
sha256: 05bbdde06dbf6c509845cdf46db35a252e8a08cdd643ba772d860c834c535941
13+
14+
build:
15+
noarch: generic
16+
number: 0
17+
script: "python -m pip install . --no-deps -vv"
18+
19+
requirements:
20+
build:
21+
- python
22+
run:
23+
- python
24+
- pip
25+
- numpy
26+
- pandas
27+
- scikit-learn
28+
- transformers
29+
- nltk
30+
- pytorch
31+
- sentencepiece
32+
33+
files:
34+
- requirements.txt
35+
36+
about:
37+
home: https://github.com/JohnSnowLabs/nlptest/
38+
license: Apache License 2.0
39+
license_family: APACHE
40+
license_url: https://github.com/JohnSnowLabs/nlptest/blob/main/LICENSE
41+
description: John Snow Labs' NLP Test is a Python library for testing NLP models and datasets. It comes with over 50 tests covering fairness, robustness, accuracy, bias and representation for named entity recognition and text classification.
42+
summary: Deliver safe & effective NLP models in a few lines of code.

conda/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
wn

0 commit comments

Comments
 (0)