Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
04e91a0
modifiying runtimesample
chakravarthik27 Jul 5, 2023
b50b593
Merge remote-tracking branch 'origin/release/1.1.0' into refactor/cha…
chakravarthik27 Jul 5, 2023
03bbe03
update runtime sample
ArshaanNazir Jul 10, 2023
e7ba51a
update docstrings
ArshaanNazir Jul 10, 2023
d8cacf8
refactored runtime test
chakravarthik27 Jul 10, 2023
a4c47db
resolve conflicts
ArshaanNazir Jul 10, 2023
acd1821
rename Runtime -> SpeedTest
ArshaanNazir Jul 10, 2023
4762265
update SpeedTestSample
ArshaanNazir Jul 10, 2023
56e22d8
update imports
ArshaanNazir Jul 10, 2023
7e2efe0
reformatted
chakravarthik27 Jul 10, 2023
973722a
fixed: attribute error with transform_time
chakravarthik27 Jul 10, 2023
78a2ac2
minor fixes for speed tests
ArshaanNazir Jul 10, 2023
10eb47f
fix linting
ArshaanNazir Jul 10, 2023
c9fd7d6
fix TranslationTestCase
ArshaanNazir Jul 10, 2023
ed05543
new speedtest approach
chakravarthik27 Jul 13, 2023
f6626a2
update a code measuretestfactory
chakravarthik27 Jul 13, 2023
766c135
Merge 'release/1.1.0' into refactor/speedtest
chakravarthik27 Jul 13, 2023
8f823d4
linting
chakravarthik27 Jul 14, 2023
28978f0
Task(measure.py): Linting/Docstring
RakshitKhajuria Jul 16, 2023
434d70d
add: tempaltic augemtation nb
chakravarthik27 Jul 17, 2023
de0df1a
Task: support hf dataset for augmentation
Prikshit7766 Jul 20, 2023
7dcd8cb
fix(augmentation/__init__.py): Bug fix in export_mode = transformed
RakshitKhajuria Jul 20, 2023
315ce71
add random age test
alytarik Jul 20, 2023
bea4529
add count parameter
alytarik Jul 20, 2023
bd9e839
add "xx days old" to age expressions
alytarik Jul 20, 2023
56128c9
Test(test/test_augmentation.py): added test for coverage
Prikshit7766 Jul 20, 2023
20347a7
Test(test_augmentation.py): Added more tests
RakshitKhajuria Jul 20, 2023
d269f08
Test(test/test_augmentation.py): updated path
Prikshit7766 Jul 20, 2023
fe566c4
task(test_augmentation.py): Updated the config path for text-classifi…
RakshitKhajuria Jul 20, 2023
795e639
task(test_augmentation.py): Updated the config path for text-classifi…
RakshitKhajuria Jul 20, 2023
81c9835
Task(test_augmentation): Added custom proportions
RakshitKhajuria Jul 20, 2023
ffeeb3f
task(langtest.py): Updated Args
RakshitKhajuria Jul 20, 2023
631bd4a
task(augmentation/__init__.py): Updated Args
Prikshit7766 Jul 20, 2023
ef2bd6c
update: test augmentation
Prikshit7766 Jul 20, 2023
eed8778
task(test_augmentation.py): added data_source
RakshitKhajuria Jul 20, 2023
f331a23
updated augmentation/__init__.py
Prikshit7766 Jul 20, 2023
8269ede
Merge pull request #659 from JohnSnowLabs/fix/ner-csv-export
JulesBelveze Jul 21, 2023
77d4848
fix(formatter): wrong assertion
JulesBelveze Jul 21, 2023
ec12ea0
chore(pipelines): add NER dataset
JulesBelveze Jul 21, 2023
0c46294
chore(pipelines): NER metrics computation
JulesBelveze Jul 21, 2023
c63cefb
feature(pipelines): add NER pipeline transformers
JulesBelveze Jul 21, 2023
b3de4ff
docs(data.md): QA Benchmarks: Use Cases and Evaluations
RakshitKhajuria Jul 23, 2023
4f862db
docs(data.md): Added more QA Benchmarks
Prikshit7766 Jul 23, 2023
4f3482a
docs(data.md): Added Summarization Benchmarks
Prikshit7766 Jul 23, 2023
d36217d
docs(data.md): Toxicity benchmarks
RakshitKhajuria Jul 23, 2023
b464c82
docs(LLM Notebooks): Updated collab links
RakshitKhajuria Jul 23, 2023
fe5e771
docs(tutorials.md): colab link updated
Prikshit7766 Jul 23, 2023
ceccfa4
fix typo
alytarik Jul 24, 2023
356c182
add test
alytarik Jul 24, 2023
0e69c79
docstrings
alytarik Jul 24, 2023
e50352a
linting
alytarik Jul 24, 2023
6103996
formatting
alytarik Jul 24, 2023
a07949e
docs(pipelines): improve NER HF pipeline docstring
JulesBelveze Jul 24, 2023
abe3cd4
Docs(Readme.md): Added Comparing Benchmark Datasets: Use Cases and Ev…
RakshitKhajuria Jul 24, 2023
0270477
Docs(Readme.md): Updated readme
RakshitKhajuria Jul 24, 2023
ecca496
Docs(Readme.md): Updated readme
RakshitKhajuria Jul 24, 2023
3b01654
tests(pipelines): add NER HF tests for pipelines
JulesBelveze Jul 24, 2023
bf9ef16
dependency: add metaflow
JulesBelveze Jul 24, 2023
7305ccc
docs(Readme.md): added more datasets and links updated
Prikshit7766 Jul 24, 2023
c20cd4d
CI: add pypi publish workflow
JulesBelveze Jul 24, 2023
b917bc7
Merge pull request #654 from JohnSnowLabs/feature/age-tests
JulesBelveze Jul 24, 2023
f505c16
fix(CI): secret variable name
JulesBelveze Jul 25, 2023
117b38a
update: measure.py
chakravarthik27 Jul 25, 2023
9b2be38
Merge pull request #672 from JohnSnowLabs/feature/release-ci
JulesBelveze Jul 25, 2023
5d6d32f
add hf ner dataset support
alytarik Jul 26, 2023
d70529c
refactor one line
alytarik Jul 26, 2023
3806f90
add ner support for hf datasets
alytarik Jul 26, 2023
8400030
linting
alytarik Jul 26, 2023
c327504
formatting
alytarik Jul 26, 2023
7d8a8b6
Task: Added NQ-Open dataset NB
RakshitKhajuria Jul 26, 2023
2e796a5
updated data.md
RakshitKhajuria Jul 26, 2023
ce84496
updated nq notebook
Prikshit7766 Jul 26, 2023
9affe9e
added dataset notebook Boolq
Prikshit7766 Jul 26, 2023
bb16864
added Xsum dataset nb
RakshitKhajuria Jul 26, 2023
91bdc4d
refactor: speedtest
chakravarthik27 Jul 27, 2023
a6fdc95
Merge branch 'release/1.2.0' into runtime-speed
chakravarthik27 Jul 27, 2023
6d0f072
update: expected and actual results
chakravarthik27 Jul 27, 2023
c74af8b
Merge pull request #663 from JohnSnowLabs/docs/add-documentation-for-…
JulesBelveze Jul 27, 2023
ccf046f
resolved: error in augmentaion.
chakravarthik27 Jul 27, 2023
685a07e
add unittest for HF NER dataset
alytarik Jul 27, 2023
d94623a
formatting
alytarik Jul 27, 2023
9ff3344
docstring
alytarik Jul 27, 2023
965cce6
renamed: measure to performance
chakravarthik27 Jul 27, 2023
638ddd0
hot-fix(datasource.py)
RakshitKhajuria Jul 27, 2023
a32dbd6
updated: separated - unit value from min_pass_rate
chakravarthik27 Jul 28, 2023
1bd9d6e
updated: nb
chakravarthik27 Jul 28, 2023
37e31e7
add random age test to website
alytarik Jul 28, 2023
df7bc48
change 'count' parameter type from flaot to int
alytarik Jul 28, 2023
a75e887
Merge pull request #676 from JohnSnowLabs/hotfix/datasource.py
JulesBelveze Jul 28, 2023
aa35973
updated: performance test nb
chakravarthik27 Jul 28, 2023
f496e53
Update poetry.lock
JulesBelveze Jul 28, 2023
2010850
Update pyproject.toml
JulesBelveze Jul 28, 2023
4d330c4
tests: set Metaflow env var
JulesBelveze Jul 28, 2023
ff6d95f
updated: qa and sum support for speed & unittests
chakravarthik27 Jul 28, 2023
0f43910
resolved: lint formating
chakravarthik27 Jul 28, 2023
06c1872
fix(test): missing import in conftest
JulesBelveze Jul 28, 2023
2787804
fix(tests): attempt to run pipeline tests
JulesBelveze Jul 28, 2023
5536000
fix(datasource.py): sentences containing white spaces for ConllDataset
Prikshit7766 Jul 29, 2023
adbdf10
updated condtion
Prikshit7766 Jul 29, 2023
50bea6c
add mlflow tracking option
ArshaanNazir Jul 29, 2023
6315564
add ModuleNotFoundError for mlflow
ArshaanNazir Jul 29, 2023
e5b341b
check mlflow package
ArshaanNazir Jul 29, 2023
8a1c6a6
tests: transform method of fairness classes
RakshitKhajuria Jul 29, 2023
e919b26
task(transform/__init__.py): updated transform method of fairness
Prikshit7766 Jul 29, 2023
c133c93
test(test_fairness): added pytest for fairness
Prikshit7766 Jul 29, 2023
23a1e5d
Merge branch 'add-unittests-for-fairness-classes' of https://github.c…
Prikshit7766 Jul 29, 2023
be452f8
test(test_fairness): Added more samples
RakshitKhajuria Jul 29, 2023
086f41d
test: Updated imports
RakshitKhajuria Jul 29, 2023
6f36418
Handle model as PipelineObject case
ArshaanNazir Jul 29, 2023
457e6d8
update multi-model comparison ml_flow tracking
ArshaanNazir Jul 29, 2023
8668b39
fix linting
ArshaanNazir Jul 30, 2023
20c6ea0
Add test for mlflow tracking
ArshaanNazir Jul 30, 2023
b52f4d6
add mlflow to .toml file
ArshaanNazir Jul 30, 2023
224d6e6
Removed print statement
RakshitKhajuria Jul 30, 2023
3349e33
update poetry deps
ArshaanNazir Jul 30, 2023
e5fecd1
update poetry extras
ArshaanNazir Jul 30, 2023
083ee75
update transformers to fix gender classifier issue
ArshaanNazir Jul 30, 2023
bd45e29
Merge pull request #605 from JohnSnowLabs/refactor/change-runtime-spe…
ArshaanNazir Jul 31, 2023
bbec02a
resolve conflicts
ArshaanNazir Jul 31, 2023
02173c5
update toxicity page
ArshaanNazir Jul 31, 2023
d9621ed
Merge pull request #678 from JohnSnowLabs/docs/age-test
ArshaanNazir Jul 31, 2023
99f0c8c
refactor parameters
alytarik Jul 31, 2023
a6dc9c4
formatting
alytarik Jul 31, 2023
250c05a
Merge pull request #682 from JohnSnowLabs/add-unittests-for-fairness-…
JulesBelveze Jul 31, 2023
10a8f56
add MLflow section on website
ArshaanNazir Jul 31, 2023
e5fb2ad
update mlflow
ArshaanNazir Jul 31, 2023
cbee5e9
add examples
alytarik Jul 31, 2023
0a28c01
Merge branch 'chore/website_updates' of https://github.com/JohnSnowLa…
alytarik Jul 31, 2023
4f8f911
Merge pull request #681 from JohnSnowLabs/error-in-load_data-function…
JulesBelveze Jul 31, 2023
913c5f6
remove unreachable default values
alytarik Jul 31, 2023
6c86f62
explanation for offensive test
alytarik Aug 1, 2023
4ac95ba
Merge pull request #684 from JohnSnowLabs/chore/website_updates
JulesBelveze Aug 1, 2023
c8ce1f5
tests(datasource): rollback split chunk
JulesBelveze Aug 1, 2023
42fcd87
tests: fix metaflow test config
JulesBelveze Aug 1, 2023
266812a
dependency: missing evaluate dependency for hf trainer
JulesBelveze Aug 1, 2023
ed59cf6
dependency: missing evaluate dependency for hf trainer
JulesBelveze Aug 1, 2023
c5611a6
Merge pull request #673 from JohnSnowLabs/feature/hf-ner-datasets
ArshaanNazir Aug 1, 2023
72786bb
dependency: missing seqeval dependency for hf trainer
JulesBelveze Aug 1, 2023
8793cdc
fix(pipeline): wrong column names
JulesBelveze Aug 1, 2023
1c120c9
Merge pull request #664 from JohnSnowLabs/feature/end-to-end-pipelines
JulesBelveze Aug 1, 2023
8a3d07b
fix transformers condition and resolve conflicts
ArshaanNazir Aug 1, 2023
4e3be6c
website and notebook updated
Prikshit7766 Aug 1, 2023
62b349c
Docs(generate_aug.md): Updated For hf dataset
RakshitKhajuria Aug 1, 2023
d45219a
fix dependencies
ArshaanNazir Aug 2, 2023
dcbca56
Merge branch 'release/1.2.0' of https://github.com/JohnSnowLabs/langt…
RakshitKhajuria Aug 2, 2023
c94ca9f
Updated website for templatic augmentations
RakshitKhajuria Aug 2, 2023
9ebaa5c
Augmentation notebook updated
Prikshit7766 Aug 2, 2023
c9e0287
fix(langtest): renamed parameter in augment method
JulesBelveze Aug 2, 2023
4bb70a0
Merge branch 'feature/hf-dataset-augmentation' of https://github.com/…
JulesBelveze Aug 2, 2023
b787679
updated parameters in website
RakshitKhajuria Aug 2, 2023
2f5b5e9
Merge branch 'feature/hf-dataset-augmentation' of https://github.com/…
RakshitKhajuria Aug 2, 2023
b222d77
update transformers version
ArshaanNazir Aug 2, 2023
ccc5052
param updated in notebook
Prikshit7766 Aug 2, 2023
ff8c2fa
add ner task to hf datasets
alytarik Aug 2, 2023
d056598
update README
ArshaanNazir Aug 2, 2023
c9dfa98
param updated test_augmentation.py
Prikshit7766 Aug 2, 2023
dcbf896
update: colab link in performancetest notebook
chakravarthik27 Aug 2, 2023
a580ef0
Merge pull request #690 from JohnSnowLabs/docs/hf-ner-dataset-notebook
ArshaanNazir Aug 2, 2023
12c9388
Merge pull request #683 from JohnSnowLabs/feature/ml_flow_integration
JulesBelveze Aug 2, 2023
185ecf0
Merge pull request #653 from JohnSnowLabs/feature/hf-dataset-augmenta…
ArshaanNazir Aug 2, 2023
db4584d
update one-liner page
ArshaanNazir Aug 2, 2023
5f7d62a
update landing page
ArshaanNazir Aug 2, 2023
8a51742
update model-section in website
ArshaanNazir Aug 2, 2023
822c129
fix landing page
ArshaanNazir Aug 2, 2023
202a3fc
update augmentation page
ArshaanNazir Aug 2, 2023
ef781d5
ficx augmentation links and documentation
ArshaanNazir Aug 2, 2023
a902f2d
fix(dependencies): missing datasets dependency
JulesBelveze Aug 2, 2023
c8ec63f
fix(dependencies): make transformers mandatory
JulesBelveze Aug 2, 2023
f04436a
minor documentation fix
ArshaanNazir Aug 2, 2023
ef19381
Merge pull request #693 from JohnSnowLabs/fix/missing-datasets-depend…
JulesBelveze Aug 2, 2023
7ff35d2
Merge branch 'release/1.2.0' into docs/website-updates
ArshaanNazir Aug 2, 2023
2880ecb
update default one-liners and landing page
ArshaanNazir Aug 2, 2023
01fe01a
update landing page
ArshaanNazir Aug 2, 2023
97cf760
Update demo Nbs
ArshaanNazir Aug 2, 2023
809222e
Merge pull request #692 from JohnSnowLabs/docs/website-updates
ArshaanNazir Aug 2, 2023
096f7e0
Merge pull request #691 from JohnSnowLabs/update/performancetest_note…
ArshaanNazir Aug 2, 2023
b3fd40c
update NB
ArshaanNazir Aug 2, 2023
83b7a48
update HF dataset NB
ArshaanNazir Aug 2, 2023
8496ae9
Merge pull request #694 from JohnSnowLabs/docs/website-updates
ArshaanNazir Aug 2, 2023
6f5cbde
fix: merge conflicts with main
JulesBelveze Aug 3, 2023
2a64578
fix: missing fixture files
JulesBelveze Aug 3, 2023
9b6c91c
fix: missing str handling in NEROutput __getitem__
JulesBelveze Aug 3, 2023
66fc79f
fix(tests): wrong expected results in TestTemplaticAugmentation::test…
JulesBelveze Aug 3, 2023
687f23c
Merge pull request #697 from JohnSnowLabs/fix/merge-conflicts-release…
ArshaanNazir Aug 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release
on:
release:
types:
- published

jobs:
publish:
strategy:
fail-fast: false
matrix:
python-version: [3.9]
poetry-version: [1.3.1]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- uses: snok/install-poetry@v1
with:
version: ${{ matrix.poetry-version }}
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Publish langtest ${{ github.event.release.name }} to pypi
env:
PYPI_SECRET: ${{ secrets.PYPI_SECRET }}
run: |
poetry config pypi-token.pypi $PYPI_SECRET
poetry publish --build
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Take a look at our official page for user documentation and examples: [langtest.

```python
# Install langtest
!pip install langtest transformers==4.28.1
!pip install langtest[transformers]

# Import and create a Harness object
from langtest import Harness
Expand All @@ -67,6 +67,27 @@ We propose here an early stage open-source community project that aims to fill t

[John Snow Labs](www.johnsnowlabs.com) has a full development team allocated to the project and is committed to improving the library for years, as we do with other open-source libraries. Expect frequent releases with new test types, tasks, languages, and platforms to be added regularly. We look forward to working together to make safe, reliable, and responsible NLP an everyday reality.

## Comparing Benchmark Datasets: Use Cases and Evaluations

Langtest comes with different datasets to test your models, covering a wide range of use cases and evaluation scenarios.

| Dataset | Use Case | Notebook |
|---------------|----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| [**BoolQ**](https://aclanthology.org/N19-1300/) | Evaluate the ability of your model to answer boolean questions (yes/no) based on a given passage or context. | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/BoolQ_dataset.ipynb) |
| [**NQ-open**](https://aclanthology.org/Q19-1026/) | Evaluate the ability of your model to answer open-ended questions based on a given passage or context. | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/NQ_open_dataset.ipynb) |
| [**TruthfulQA**](https://aclanthology.org/2022.acl-long.229/) | Evaluate the model's capability to answer questions accurately and truthfully based on the provided information. | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/TruthfulQA_dataset.ipynb) |
| [**MMLU**](https://arxiv.org/abs/2009.03300) | Evaluate language understanding models' performance in different domains. It covers 57 subjects across STEM, the humanities, the social sciences, and more. | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/mmlu_dataset.ipynb) |
| [**NarrativeQA**](https://aclanthology.org/Q18-1023/) | Evaluate your model's ability to comprehend and answer questions about long and complex narratives, such as stories or articles. | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/NarrativeQA_Question_Answering.ipynb) |
| [**HellaSwag**](https://aclanthology.org/P19-1472/) | Evaluate your model's ability in completions of sentences. | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/HellaSwag_Question_Answering.ipynb) |
| [**Quac**](https://aclanthology.org/D18-1241/) | Evaluate your model's ability to answer questions given a conversational context, focusing on dialogue-based question-answering. | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/quac_dataset.ipynb) |
| [**OpenBookQA**](https://allenai.org/data/open-book-qa)| Evaluate your model's ability to answer questions that require complex reasoning and inference based on general knowledge, similar to an "open-book" exam. | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/quac_dataset.ipynb) |
| [**BBQ**](https://arxiv.org/abs/2110.08193) | Evaluate how your model responds to questions in the presence of social biases against protected classes across various social dimensions. Assess biases in model outputs with both under-informative and adequately informative contexts, aiming to promote fair and unbiased question-answering models. | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/BBQ_dataset.ipynb) |
|[**XSum**](https://aclanthology.org/D18-1206/) | Evaluate your model's ability to generate concise and informative summaries for long articles with the XSum dataset. It consists of articles and corresponding one-sentence summaries, offering a valuable benchmark for text summarization models. | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/XSum_dataset.ipynb)|
|[**Real Toxicity Prompts**](https://aclanthology.org/2020.findings-emnlp.301/) | Evaluate your model's accuracy in recognizing and handling toxic language with the Real Toxicity Prompts dataset. It contains real-world prompts from online platforms, ensuring robustness in NLP models to maintain safe environments. | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/OpenAI_QA_Testing_Notebook.ipynb)

> **Note**
> For usage and documentation, head over to [langtest.org](https://langtest.org/docs/pages/docs/data#question-answering)

## Contributing

We welcome all sorts of contributions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,11 @@
}
],
"source": [
"h.augment(input_path=\"conll03.conll\", output_path=\"augmented_conll03.conll\", inplace=False)"
"data_kwargs = {\n",
" \"data_source\" : \"conll03.conll\",\n",
" }\n",
"\n",
"h.augment(training_data=data_kwargs, save_data_path=\"augmented_conll03.conll\", export_mode=\"add\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,11 @@
}
],
"source": [
"harness.augment(\"conll03.conll\", \"augmented_train.conll\", inplace=False)"
"data_kwargs = {\n",
" \"data_source\" : \"conll03.conll\",\n",
" }\n",
"\n",
"harness.augment(training_data=data_kwargs, save_data_path=\"augmented_train.conll\", export_mode=\"add\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,11 @@
}
],
"source": [
"harness.augment(\"conll03.conll\", \"augmented.conll\", inplace=False)"
"data_kwargs = {\n",
" \"data_source\" : \"conll03.conll\",\n",
" }\n",
"\n",
"harness.augment(training_data=data_kwargs, save_data_path=\"augmented.conll\", export_mode=\"add\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,11 @@
}
],
"source": [
"h.augment(\"conll03.conll\", \"augmented.conll\", inplace=False)"
"data_kwargs = {\n",
" \"data_source\" : \"conll03.conll\",\n",
" }\n",
"\n",
"h.augment(training_data=data_kwargs, save_data_path=\"augmented.conll\", export_mode=\"add\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"id": "3o5sAOfwL5qd"
},
"source": [
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/AI21_QA_Testing_Notebook.ipynb)"
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/AI21_QA_Summarization_Testing_Notebook.ipynb)"
]
},
{
Expand All @@ -39,7 +39,7 @@
"id": "26qXWhCYhHAt"
},
"source": [
"# Getting started with LangTest on John Snow Labs"
"# Getting started with LangTest"
]
},
{
Expand All @@ -54,23 +54,7 @@
},
"outputs": [],
"source": [
"!pip install langtest"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Installing required dependencies"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install \"langtest[evaluate,ai21,langchain]\" transformers==4.28.1"
"!pip install \"langtest[evaluate,ai21,langchain,transformers]\" "
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"id": "3o5sAOfwL5qd"
},
"source": [
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/Azure_OpenAI_QA_Testing_Notebook.ipynb)"
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/Azure_OpenAI_QA_Summarization_Testing_Notebook.ipynb)"
]
},
{
Expand All @@ -39,29 +39,7 @@
"id": "26qXWhCYhHAt"
},
"source": [
"# Getting started with LangTest on John Snow Labs"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "azUb114QhOsY",
"outputId": "45a0a692-5076-4fcf-ceb4-b5eb914d9aed"
},
"outputs": [],
"source": [
"!pip install langtest"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Installing required dependencies"
"# Getting started with LangTest"
]
},
{
Expand All @@ -70,7 +48,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"langtest[evaluate,langchain,openai]\" transformers==4.28.1"
"!pip install \"langtest[evaluate,langchain,openai,transformers]\" "
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"id": "3o5sAOfwL5qd"
},
"source": [
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/Cohere_QA_Testing_Notebook.ipynb)"
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/Cohere_QA_Summarization_Testing_Notebook.ipynb)"
]
},
{
Expand All @@ -39,29 +39,7 @@
"id": "26qXWhCYhHAt"
},
"source": [
"# Getting started with LangTest on John Snow Labs"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "azUb114QhOsY",
"outputId": "45a0a692-5076-4fcf-ceb4-b5eb914d9aed"
},
"outputs": [],
"source": [
"!pip install langtest"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Installing required dependencies"
"# Getting started with LangTest "
]
},
{
Expand All @@ -70,7 +48,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install \"langtest[evaluate,cohere,langchain]\" transformers==4.28.1"
"!pip install \"langtest[evaluate,cohere,langchain,transformers]\" "
]
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "yR6kjOaiheKN"
},
"source": [
"# Harness and Its Parameters\n",
"\n",
"The Harness class is a testing class for Natural Language Processing (NLP) models. It evaluates the performance of a NLP model on a given task using test data and generates a report with test results.Harness can be imported from the LangTest library in the following way."
]
},
{
"attachments": {},
"cell_type": "markdown",
Expand All @@ -29,7 +17,7 @@
"id": "3o5sAOfwL5qd"
},
"source": [
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/HuggingFaceHub_QA_Testing_Notebook.ipynb)"
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/HuggingFaceHub_QA_Summarization_Testing_Notebook.ipynb)"
]
},
{
Expand All @@ -51,7 +39,7 @@
"id": "26qXWhCYhHAt"
},
"source": [
"# Getting started with LangTest on John Snow Labs"
"# Getting started with LangTest"
]
},
{
Expand All @@ -66,23 +54,7 @@
},
"outputs": [],
"source": [
"!pip install \"langtest[evaluate,langchain]\" transformers==4.28.1"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Installing required dependencies"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install \"langtest[transformers,johnsnowlabs]\""
"!pip install \"langtest[evaluate,langchain,transformers]\" "
]
},
{
Expand Down
Loading