Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
5b76e46
custom-column-names for text-classification and summarization
Prikshit7766 Jul 20, 2023
2f1db05
updated langtest.py for custom-column-names for csv
Prikshit7766 Jul 20, 2023
ad7da52
Format: datasource.py and langtest.py
Prikshit7766 Jul 20, 2023
d62598e
added default_question_answering_prompt
Prikshit7766 Jul 21, 2023
902795b
added support for question answering for csv dataset
Prikshit7766 Jul 21, 2023
3382635
Test(test/test_harness.py): added test
Prikshit7766 Jul 21, 2023
b459bbc
updated test
Prikshit7766 Jul 21, 2023
ea9e607
minor change
Prikshit7766 Jul 21, 2023
373bd56
Merge branch 'release/1.2.0' of https://github.com/JohnSnowLabs/langt…
Prikshit7766 Jul 21, 2023
9c8a6b3
chore(datasource): add load raw method for CustomCSVDataset
Prikshit7766 Jul 21, 2023
f45509f
updated test for HuggingFaceDataset
Prikshit7766 Jul 28, 2023
108f6b0
updated CSVDataset for custom column names
Prikshit7766 Jul 28, 2023
234177f
tests\test_datasource.py reformatted
Prikshit7766 Jul 28, 2023
30add66
datasource.py updated
Prikshit7766 Jul 28, 2023
c4692be
re-arranged code and directly load csv for summarization, question-an…
Prikshit7766 Jul 29, 2023
49a3ced
re-arranged classes
Prikshit7766 Jul 29, 2023
f82ac20
added some checks and support for custom columns ner
Prikshit7766 Jul 30, 2023
c1b0d8f
Test(test/test_harness.py): added some test
Prikshit7766 Jul 30, 2023
55ce03e
file path updated
Prikshit7766 Jul 30, 2023
dc332eb
resolve conflicts
Prikshit7766 Jul 31, 2023
d6156c6
test(test_robustness): setup new test class
RakshitKhajuria Aug 8, 2023
4a0971a
test(test_robustness.py): added unittest
Prikshit7766 Aug 8, 2023
c93d409
refacto(accuracy.py): Added checks
RakshitKhajuria Aug 8, 2023
0c11e16
Merge branch 'improve-unit-test-coverage' of https://github.com/JohnS…
RakshitKhajuria Aug 8, 2023
38f8251
refacto accuracy.py
Prikshit7766 Aug 8, 2023
81e589f
pytest: test_accuracy.py
RakshitKhajuria Aug 8, 2023
2ef2e7a
test(test_accuracy.py):pytest for accuracy
Prikshit7766 Aug 8, 2023
2c91a83
Docs: Added Contribution Guidelines
RakshitKhajuria Aug 9, 2023
4a28360
updated contributing guidlines
Prikshit7766 Aug 9, 2023
bfb23f8
add clinical_prompt_template
ArshaanNazir Aug 10, 2023
c79de4b
add ClinicalSample to samples
ArshaanNazir Aug 10, 2023
52c724a
add clinical-tests to supported tasks
ArshaanNazir Aug 10, 2023
5eb9af0
update datasource
ArshaanNazir Aug 10, 2023
4b3c76a
add Medical-files data
ArshaanNazir Aug 10, 2023
5e36b8d
feature: basic implemtation
chakravarthik27 Aug 10, 2023
437fd5a
Docs : Added Introduction Guidelines
RakshitKhajuria Aug 10, 2023
5648377
Merge branch 'add-onboarding-materials' of https://github.com/JohnSno…
RakshitKhajuria Aug 10, 2023
6f858bc
Docs: Added page to navigation.yml
RakshitKhajuria Aug 10, 2023
e115ae8
update datasource
ArshaanNazir Aug 10, 2023
10c381e
Update helpers.py
ArshaanNazir Aug 10, 2023
2ef3819
update modelhandler for clinical tests
ArshaanNazir Aug 10, 2023
6ae383c
update llm_modelhandler
ArshaanNazir Aug 10, 2023
9e097fe
docs(contribute.md): added contribution guidelines
Prikshit7766 Aug 10, 2023
2c5e6a2
docs(CONTRIBUTING.md): added link for example
Prikshit7766 Aug 10, 2023
0ebab4e
add gastroenterology data
ArshaanNazir Aug 10, 2023
69dff53
add clinical data
ArshaanNazir Aug 10, 2023
20736ca
feature: basic implementing
chakravarthik27 Aug 11, 2023
2463d33
feature: run method implemented
chakravarthik27 Aug 11, 2023
6b1d47f
updated model as dict
Prikshit7766 Aug 11, 2023
8ed0f49
Refacto(langtest.py): Updated Model as a list of dict
RakshitKhajuria Aug 11, 2023
a412253
test(translation): Updated model type
RakshitKhajuria Aug 11, 2023
e1e0a89
ner_pipeline.py: updated model type
Prikshit7766 Aug 11, 2023
82dfc86
test(augmentation): Updated model type
RakshitKhajuria Aug 11, 2023
33baf23
test(test_harness.py):updated params
Prikshit7766 Aug 11, 2023
feba035
Merge branch 'refacto/model-as-a-dict' of https://github.com/JohnSnow…
Prikshit7766 Aug 11, 2023
7884cc2
test(performance): Updated model as a dict
RakshitKhajuria Aug 11, 2023
ca8a12f
test(spacy): Updated model as a dict
RakshitKhajuria Aug 11, 2023
357e6d4
test(test_mlflow.py):updated params
Prikshit7766 Aug 11, 2023
a405d4b
test(test_sparknlp_model.py):updated params
Prikshit7766 Aug 11, 2023
59619e9
update: errors and working upto run()
chakravarthik27 Aug 11, 2023
ad5d06b
refacto(datasource) : Added data_source param
RakshitKhajuria Aug 11, 2023
762359a
langtest.py: updated data param as dict
Prikshit7766 Aug 11, 2023
0d1a4b5
refacto: hardcode task in Samples
RakshitKhajuria Aug 12, 2023
8d46f7f
refacto(representation.py): transform method of representation classes
Prikshit7766 Aug 12, 2023
ccfe7a1
test(test_representation.py):setup representation test
Prikshit7766 Aug 12, 2023
9eb8cfd
test(test_representation): Added assertions
RakshitKhajuria Aug 12, 2023
34f4848
tests : updated data param as a dict
RakshitKhajuria Aug 12, 2023
de0aed4
ner_pipeline : updated data param as a dict
RakshitKhajuria Aug 12, 2023
1f8ed52
fix : Formatting
RakshitKhajuria Aug 12, 2023
270cb06
Test: updated data as a dict
Prikshit7766 Aug 12, 2023
0fda155
adds: clinical-tests are available to test
chakravarthik27 Aug 13, 2023
9546ca0
formating: done
chakravarthik27 Aug 13, 2023
f19cf82
test(test_harness.py): updated params
Prikshit7766 Aug 13, 2023
dd3b129
deleted: comparison.py is longer required
chakravarthik27 Aug 14, 2023
ab57936
Merge pull request #700 from JohnSnowLabs/improve-unit-test-coverage
ArshaanNazir Aug 14, 2023
f0177eb
updated: columns in testcases df from harness
chakravarthik27 Aug 14, 2023
03bcb18
Merge branch 'release/1.3.0' of https://github.com/JohnSnowLabs/langt…
Prikshit7766 Aug 14, 2023
e727c43
fix : Lint
RakshitKhajuria Aug 14, 2023
2516435
fix: formatting
RakshitKhajuria Aug 14, 2023
976660e
Update TestFactory add demographic-bias test-type
ArshaanNazir Aug 14, 2023
08a4f42
Update is_eval pass condition for clinical tests
ArshaanNazir Aug 14, 2023
126eb1f
update clinical data files
ArshaanNazir Aug 14, 2023
dbc019f
update & linting: available tests method & format
chakravarthik27 Aug 14, 2023
4669de1
add deafault config for clinical tests
ArshaanNazir Aug 14, 2023
146da85
fix linting
ArshaanNazir Aug 14, 2023
4964333
update package_data
ArshaanNazir Aug 14, 2023
e0e5344
Merge branch 'refacto/model-as-a-dict' of https://github.com/JohnSnow…
Prikshit7766 Aug 15, 2023
1895b3e
updated param
Prikshit7766 Aug 15, 2023
9450bc6
updated load method of Harness
Prikshit7766 Aug 15, 2023
b382322
updated param in langtest.py and augmentation/__init__.py
Prikshit7766 Aug 15, 2023
3b9051c
fix: Datafactory file_path
RakshitKhajuria Aug 15, 2023
0b64e52
fix: DataFactory file_path as a dict object
RakshitKhajuria Aug 15, 2023
ea591ec
ner_pipeline.py: param updated
Prikshit7766 Aug 15, 2023
65f8241
Merge pull request #701 from JohnSnowLabs/add-onboarding-materials
ArshaanNazir Aug 15, 2023
491ac17
langtest.py: updated self.data as list
Prikshit7766 Aug 15, 2023
721aba5
langtest.py: updated the condtion
Prikshit7766 Aug 15, 2023
8dd31f2
implemting: prompt injection tests
chakravarthik27 Aug 15, 2023
3608947
resolved: linting issues in datasource.py
chakravarthik27 Aug 15, 2023
b88669d
update SecuritySample for prompt-injection
ArshaanNazir Aug 15, 2023
e93a6c8
Update supported task and alias-name
ArshaanNazir Aug 15, 2023
ae375a0
update security.py
ArshaanNazir Aug 15, 2023
c282231
update modelhandler
ArshaanNazir Aug 15, 2023
4005041
update run method and adding prompt to helper
ArshaanNazir Aug 15, 2023
d044184
Add: prompt-injection-attack dataset
chakravarthik27 Aug 15, 2023
ca788b5
update data paths
ArshaanNazir Aug 15, 2023
583be16
update datasource and lint
ArshaanNazir Aug 15, 2023
3a777dc
Merge branch 'feature/explore-prompt-injection-tests' of https://gith…
ArshaanNazir Aug 15, 2023
bdefc1a
updated: curated dataset
chakravarthik27 Aug 15, 2023
8cc6078
Merge branch 'feature/explore-prompt-injection-tests' of https://gith…
chakravarthik27 Aug 15, 2023
17e9b5b
resolved: prompt-inection-attack was working.
chakravarthik27 Aug 15, 2023
ca3c905
removed: unneccessary comments
chakravarthik27 Aug 15, 2023
4a8e103
add default security config
ArshaanNazir Aug 15, 2023
90c1928
Lint code
ArshaanNazir Aug 15, 2023
dcec716
update prompt-injection template
ArshaanNazir Aug 15, 2023
ce62f6f
updated: eval method in sample.py
chakravarthik27 Aug 15, 2023
ca484ac
resolved: liniting issue
chakravarthik27 Aug 15, 2023
9f05108
get rid of sentence-transformers dependency
ArshaanNazir Aug 16, 2023
7f20604
fix linting
ArshaanNazir Aug 16, 2023
855a1cd
fix Gatroenterolgy data
ArshaanNazir Aug 16, 2023
2309f49
fix fairness scores
alytarik Aug 16, 2023
accc425
Merge pull request #707 from JohnSnowLabs/feature/clinical_tests
ArshaanNazir Aug 16, 2023
9176c7e
resolve conflicts
ArshaanNazir Aug 16, 2023
6db0516
fix conflicts and linting
ArshaanNazir Aug 16, 2023
0894060
fix imports
ArshaanNazir Aug 16, 2023
a83a8d7
fix build
ArshaanNazir Aug 16, 2023
0f5ecea
Merge pull request #709 from JohnSnowLabs/fix/fairness-scores
ArshaanNazir Aug 16, 2023
fdc1492
updated: removing trail whitespaces
chakravarthik27 Aug 16, 2023
f37f065
Merge pull request #705 from JohnSnowLabs/test/pytest-representation
ArshaanNazir Aug 17, 2023
57cd30f
fix: Bias datasets are working
RakshitKhajuria Aug 17, 2023
c343d79
Merge branch 'refacto/model-as-a-dict' of https://github.com/JohnSnow…
RakshitKhajuria Aug 17, 2023
dfbfcf9
Merge pull request #708 from JohnSnowLabs/feature/explore-prompt-inje…
ArshaanNazir Aug 17, 2023
5125d2a
added source param for HuggingFaceDataset
Prikshit7766 Aug 17, 2023
538063e
updated augmentation/__init__.py
Prikshit7766 Aug 17, 2023
2a9fea9
test(test_augmentation.py):added source param
Prikshit7766 Aug 17, 2023
1affd08
datasource.py: added ValueError
Prikshit7766 Aug 17, 2023
73c2d25
Merge pull request #706 from JohnSnowLabs/refacto/model-as-a-dict
ArshaanNazir Aug 17, 2023
5e1244e
task(langtest.py): Upload folder to hf hub added
RakshitKhajuria Aug 17, 2023
e244cbd
fix: lint
RakshitKhajuria Aug 17, 2023
b8baed8
langtest.py: upload spacy model to hub
Prikshit7766 Aug 17, 2023
ae2e720
langtest.py: added ValueError
Prikshit7766 Aug 17, 2023
cbd22ae
Add tutorial NB
ArshaanNazir Aug 17, 2023
06efb74
support for string ner_tags column
alytarik Aug 17, 2023
f8975a2
update colab link
ArshaanNazir Aug 17, 2023
df45ebe
Update tutorials section
ArshaanNazir Aug 17, 2023
f15585c
conflict resolved
Prikshit7766 Aug 17, 2023
b1a8fe7
update test page ( clinical + toxicity )
ArshaanNazir Aug 17, 2023
91a1d10
add tests
alytarik Aug 17, 2023
73eb07b
task(langtest.py): Upload file to hub
RakshitKhajuria Aug 17, 2023
9fd042b
task(langtest.py): remove private
RakshitKhajuria Aug 17, 2023
f980655
langtest.py : support for conll file
Prikshit7766 Aug 17, 2023
37dee9c
Updated func name
RakshitKhajuria Aug 17, 2023
369060e
Updated Docstring
RakshitKhajuria Aug 17, 2023
592133a
langtest.py: updated docstring
Prikshit7766 Aug 17, 2023
c9c6a12
Update tutorial NB
ArshaanNazir Aug 17, 2023
a174cfe
Update webiste with clinical test
ArshaanNazir Aug 17, 2023
73be268
update one-liners
ArshaanNazir Aug 17, 2023
81df158
final website updates for clincal-test
ArshaanNazir Aug 17, 2023
aeefe00
updated test_harness.py and datasource.py
Prikshit7766 Aug 17, 2023
15737ec
Merge pull request #712 from JohnSnowLabs/fix/support-more-ner-hf-for…
ArshaanNazir Aug 17, 2023
b457911
fix lint
Prikshit7766 Aug 17, 2023
c21d3dc
Merge pull request #714 from JohnSnowLabs/chore/clinical-tests-NB-web…
ArshaanNazir Aug 17, 2023
5a57bda
Updated translation notebook
RakshitKhajuria Aug 17, 2023
6f25690
Updated accuracy notebook
RakshitKhajuria Aug 17, 2023
fc2868e
Updated custom data notebook
RakshitKhajuria Aug 17, 2023
134bce3
Updated bias demo notebook
RakshitKhajuria Aug 17, 2023
79a9f06
Updated fairness demo notebook
RakshitKhajuria Aug 17, 2023
b097d7d
Updated representation demo notebook
RakshitKhajuria Aug 17, 2023
65427e3
Updated robustness demo notebook
RakshitKhajuria Aug 17, 2023
38e37b0
Updated markdown in test specific notebook
RakshitKhajuria Aug 17, 2023
54179f6
Updated ai21 demo notebook
RakshitKhajuria Aug 17, 2023
6c3c4d7
Updated LLM notebooks
RakshitKhajuria Aug 17, 2023
49b63d0
add manual build file for llm-tests
ArshaanNazir Aug 17, 2023
162f8b0
add manual_tests
ArshaanNazir Aug 17, 2023
a4ce4b9
add test_llms.py
ArshaanNazir Aug 17, 2023
6cc335a
updated misc notebooks
Prikshit7766 Aug 17, 2023
c1d7c95
Merge branch 'notebook-website-update-harness' of https://github.com/…
Prikshit7766 Aug 17, 2023
6f77f36
Updated notebook
RakshitKhajuria Aug 17, 2023
f825ff6
Updated params in nb
RakshitKhajuria Aug 17, 2023
d47eb51
updated dataset notebooks
Prikshit7766 Aug 17, 2023
fed7343
updated end-to-end-notebooks notebooks
Prikshit7766 Aug 17, 2023
b262596
Update compare model tutorial
ArshaanNazir Aug 18, 2023
fc27b5c
update NB
ArshaanNazir Aug 18, 2023
47960cf
Merge pull request #713 from JohnSnowLabs/upload-model-dataset-to-hf
ArshaanNazir Aug 18, 2023
2e8c5d2
updated parameter in the table
Prikshit7766 Aug 18, 2023
a420524
updated misc and test-specific-notebooks
Prikshit7766 Aug 18, 2023
d05d1ff
update data path
ArshaanNazir Aug 18, 2023
66be347
implements: llm unittest with manual workflow
chakravarthik27 Aug 18, 2023
32c9e23
Create manual-build.yml
ArshaanNazir Aug 18, 2023
328e9db
chore: prompt injection notebook
chakravarthik27 Aug 18, 2023
d3cad7a
merged: fix tutorials nb
chakravarthik27 Aug 18, 2023
151e7e1
update one-liner Prompt-Injection
ArshaanNazir Aug 18, 2023
1cb238a
update tasks and tutorial section
ArshaanNazir Aug 18, 2023
43daf02
Add Prompt-Injection Test to Website
ArshaanNazir Aug 18, 2023
22cb04a
Update tutorial links
ArshaanNazir Aug 18, 2023
c4465c0
Update one-liners
ArshaanNazir Aug 18, 2023
299eafb
added Loading_Data_with_Custom_Columns notebook
Prikshit7766 Aug 18, 2023
a7b775f
Update one-liners page
ArshaanNazir Aug 18, 2023
5967479
update landing page
ArshaanNazir Aug 18, 2023
f1a4c78
updated docstring and added tests
Prikshit7766 Aug 18, 2023
9279cde
updated test_datasource.py
Prikshit7766 Aug 18, 2023
4a3444e
update prompt-injection attack page
ArshaanNazir Aug 18, 2023
0f904dd
updated load_raw_data for csv
Prikshit7766 Aug 18, 2023
6b03202
delete extra files
ArshaanNazir Aug 18, 2023
21fe1bd
Merge pull request #650 from JohnSnowLabs/support-for-custom-column-n…
ArshaanNazir Aug 18, 2023
a1dbac6
Merge pull request #716 from JohnSnowLabs/feature/llm-unit-tests
ArshaanNazir Aug 18, 2023
d1ba590
updated dataset-notebooks
Prikshit7766 Aug 18, 2023
167c85c
update model page
Prikshit7766 Aug 18, 2023
c297de7
add task
ArshaanNazir Aug 18, 2023
3d6cd16
Merge branch 'chore/Update_NBs_Website' of https://github.com/JohnSno…
ArshaanNazir Aug 18, 2023
e52191d
Merge pull request #715 from JohnSnowLabs/chore/Update_NBs_Website
ArshaanNazir Aug 18, 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
45 changes: 45 additions & 0 deletions .github/workflows/llm_tests_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Manual Tests

# This allows you to run the workflow manually from the GitHub Actions UI. We use it for running llm-tests.
on:
workflow_dispatch:

jobs:
manual_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10" ]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- uses: snok/install-poetry@v1
with:
version: 1.3.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install --with dev --all-extras

- name: Run manual_tests
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
poetry run pytest manual_tests/
167 changes: 167 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
# Contributing to LangTest

Thank you for your interest in contributing to LangTest! We value the contributions of our community members and are excited to have you on board. . To make the development journey smooth and collaborative, please adhere to the following steps:
- Thoroughly review the guidelines provided below.
- If you're eager to add a new feature to the LangTest library, navigate to the [documentation](https://langtest.org/docs/pages/docs/contribute) for a clear understanding.
- To illustrate the process, we've included a simple example in the documentation to guide you.

## Finding an Issue

1. **Explore Our Issues:**
Browse through our list of open issues on the [Issues tab](https://github.com/YourUsername/LangTest/issues). These issues cover a wide range of topics and difficulties. You might find something that aligns with your skills and interests.

2. **Filter and Search:**
Use the provided labels and filters to narrow down the list of issues. You can filter by tags like `feature`, `bug`, `fix`, etc. Also, utilize the GitHub search bar to look for keywords related to your expertise.

3. **Read and Understand:**
Once you've found an issue that captures your attention, take a moment to thoroughly read and understand it. Make sure you comprehend the problem, the expected solution, and any existing discussion around it.

4. **Clarify Doubts:**
If you have any questions or need further clarification, don't hesitate to comment on the issue. Our community is friendly and always willing to help. It's better to seek clarity before diving in.

5. **Claim the Issue:**
If you feel confident about tackling the issue, leave a comment expressing your intention to work on it. This prevents duplication of efforts and allows us to provide guidance if needed.

6. **Understand Contribution Guidelines:**
Familiarize yourself with our [Contribution Guidelines](https://github.com/JohnSnowLabs/langtest/wiki). This document outlines coding standards, pull request procedures, and other important details.

## Contribution Process

<img align="right" width="300" src="https://github.com/RakshitKhajuria/first-contributions/assets/71117423/be22d54d-5b62-4a23-b213-0268ed195021" alt="fork this repository" />

1. ### Fork this repository

Fork this repository by clicking on the fork button on the top of this page.
This will create a copy of this repository in your account.

2. ### Clone the repository

<img align="right" width="300" src="https://github.com/RakshitKhajuria/test/assets/71117423/b07c7d60-ab80-4b7f-b972-58fcd1f50741" alt="clone this repository" />

Now clone the forked repository to your machine. Go to your GitHub account, open the forked repository, click on the code button and then click the _copy to clipboard_ icon.

Open a terminal and run the following git command:

```
git clone "url you just copied"
```

where "url you just copied" (without the quotation marks) is the url to this repository (your fork of this project). See the previous steps to obtain the url.

<img align="right" width="300" src="https://github.com/RakshitKhajuria/test/assets/71117423/8eef9f61-283d-4bad-9e7f-8a526e33615e" alt="copy URL to clipboard" />

For example:

```
git clone https://github.com/username/langtest.git
```

where `username` is your GitHub username.

3. ### Create a branch

Change to the repository directory on your computer (if you are not already there):

```
cd langtest
```

Now create a branch using the `git checkout -b` command:

```
git checkout -b your-branch-name
```

4. **Set Up Environment**: Create a virtual environment for LangTest using your preferred method. For example, you can use `venv` or `conda`.

5. ### Install Poetry

Poetry is the package manager used for this project. If you don't have Poetry installed, run the following command:

```bash
pip install poetry
```

6. ### Install Dependencies

Use Poetry to install the project dependencies:

```bash
poetry install --with dev
```

7. ### Make necessary changes and commit those changes

Add those changes to the branch you just created using the `git add` command:

```
git add .
```
Now commit those changes using the `git commit` command with a meaningful message:

```
git commit -m "Add feature: feature-name"
```

8. ### Push changes to GitHub

Push your changes using the command `git push`:

```
git push -u origin your-branch-name
```

replacing `your-branch-name` with the name of the branch you created earlier.

9. ### Submit your changes for review

If you go to your repository on GitHub, you'll see a `Compare & pull request` button. Click on that button.

<img style="float: right;" src="https://github.com/RakshitKhajuria/test/assets/71117423/86cb56af-1dad-467e-afc1-f4594615783b" alt="create a pull request" />

10. ### Create a pull request (PR)

Create a pull request (PR) from your forked repository to the main LangTest repository.
- Clearly describe the changes you've made and the issue it addresses in the PR description.
- If the PR is related to an existing issue, mention it using the syntax "Fixes #issue_number."
> For pull request template click [here](https://github.com/JohnSnowLabs/langtest/blob/main/PULL_REQUEST_TEMPLATE.md)

<img style="float: right;" src="https://github.com/RakshitKhajuria/test/assets/71117423/5c629508-53a7-4444-b036-15f694df675c" alt="submit pull request" />

Our team will review your pull request, provide feedback, and work with you to ensure that your contribution meets the project's guidelines and quality standards

## Proposing a New Issue

1. If you have an idea for a new feature, improvement, or bug fix, you can propose a new issue.
2. Go to the [Issue Tracker](https://github.com/JohnSnowLabs/langtest/issues) and click on "New Issue" or just create a new issue from [here](https://github.com/JohnSnowLabs/langtest/issues/new)
3. Choose the appropriate issue lables (feature, fix, bug, etc.).
4. Provide a clear and concise title and description of the proposed issue.
5. Add labels and assignees, if applicable, to help categorize and track the issue.

We're excited to have you on board with us! Together, we can make NLP models safer, more reliable, and fairer for everyone.

### **Happy contributing!** 💫

## Where to go from here?

Congrats! You just completed the standard fork -> clone -> edit -> pull request workflow that you'll often encounter as a contributor!

Celebrate your contribution and share it with your friends and followers by going to [LinkedIn](www.linkedin.com).

You can join our community team if you need any help or have any questions.

- [Slack](https://www.johnsnowlabs.com/slack-redirect/) For live discussion with the LangTest community, join the `#langtest` channel
- [GitHub](https://github.com/JohnSnowLabs/langtest/tree/main) For bug reports, feature requests, and contributions
- [Discussions](https://github.com/JohnSnowLabs/langtest/discussions) To engage with other community members, share ideas, and show off how you use LangTest!

## Contributors

We would like to acknowledge all contributors of this open-source community project.

<a href="https://github.com/johnsnowlabs/langtest/graphs/contributors">
<img src="https://contrib.rocks/image?repo=johnsnowlabs/langtest" />
</a>

## License

LangTest is released under the [Apache License 2.0](https://github.com/JohnSnowLabs/langtest/blob/main/LICENSE), which guarantees commercial use, modification, distribution, patent use, private use and sets limitations on trademark use, liability and warranty.
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,14 @@
"<br/>\n",
"\n",
"\n",
"| Parameter | Description | \n",
"| - | - | \n",
"|**task** |Task for which the model is to be evaluated (text-classification or ner)|\n",
"|**model** |PipelineModel or path to a saved model or pretrained pipeline/model from hub.\n",
"|**data** |Path to the data that is to be used for evaluation. Can be .csv or .conll file in the CoNLL format \n",
"|**config** |Configuration for the tests to be performed, specified in form of a YAML file.\n",
"|**hub** |model hub to load from the path. Required if model param is passed as path.|\n",
"\n",
"| Parameter | Description |\n",
"| ------------- | ----------- |\n",
"| **task** | Task for which the model is to be evaluated (text-classification or ner) |\n",
"| **model** | Specifies the model(s) to be evaluated. Can be a dictionary or a list of dictionaries. Each dictionary should contain 'model' and 'hub' keys. If a path is specified, the dictionary must contain 'model' and 'hub' keys. |\n",
"| **data** | The data to be used for evaluation. A dictionary providing flexibility and options for data sources. It should include the following keys: <ul><li>data_source (mandatory): The source of the data.</li><li>subset (optional): The subset of the data.</li><li>feature_column (optional): The column containing the features.</li><li>target_column (optional): The column containing the target labels.</li><li>split (optional): The data split to be used.</li></ul> |\n",
"| **config** | Configuration for the tests to be performed, specified in the form of a YAML file. |\n",
"\n",
"\n",
"<br/>\n",
"<br/>"
Expand Down Expand Up @@ -549,7 +550,8 @@
},
"outputs": [],
"source": [
"h = Harness(task=\"ner\", model=\"trained_model\", hub=\"huggingface\", data=\"sample.conll\")"
"\n",
"h = Harness(task=\"ner\", model={\"model\": \"trained_model\", \"hub\": \"huggingface\"}, data={\"data_source\" :\"sample.conll\"})"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,14 @@
"<br/>\n",
"\n",
"\n",
"| Parameter | Description |\n",
"| - | - |\n",
"|**task** |Task for which the model is to be evaluated (text-classification or ner)|\n",
"|**model** |PipelineModel or path to a saved model or pretrained pipeline/model from hub.\n",
"|**data** |Path to the data that is to be used for evaluation. Can be .csv or .conll file in the CoNLL format\n",
"|**config** |Configuration for the tests to be performed, specified in form of a YAML file.\n",
"|**hub** |model hub to load from the path. Required if model param is passed as path.|\n",
"\n",
"| Parameter | Description |\n",
"| ------------- | ----------- |\n",
"| **task** | Task for which the model is to be evaluated (text-classification or ner) |\n",
"| **model** | Specifies the model(s) to be evaluated. Can be a dictionary or a list of dictionaries. Each dictionary should contain 'model' and 'hub' keys. If a path is specified, the dictionary must contain 'model' and 'hub' keys. |\n",
"| **data** | The data to be used for evaluation. A dictionary providing flexibility and options for data sources. It should include the following keys: <ul><li>data_source (mandatory): The source of the data.</li><li>subset (optional): The subset of the data.</li><li>feature_column (optional): The column containing the features.</li><li>target_column (optional): The column containing the target labels.</li><li>split (optional): The data split to be used.</li></ul> |\n",
"| **config** | Configuration for the tests to be performed, specified in the form of a YAML file. |\n",
"\n",
"\n",
"<br/>\n",
"<br/>"
Expand Down Expand Up @@ -409,7 +410,7 @@
},
"outputs": [],
"source": [
"harness = Harness(task=\"ner\", model=ner_model, data=\"sample.conll\")"
"harness = Harness(task=\"ner\", model={\"model\": ner_model, \"hub\": \"johnsnowlabs\"}, data={\"data_source\" :\"sample.conll\"})"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,14 @@
"<br/>\n",
"\n",
"\n",
"| Parameter | Description | \n",
"| - | - | \n",
"|**task** |Task for which the model is to be evaluated (text-classification or ner)|\n",
"|**model** |PipelineModel or path to a saved model or pretrained pipeline/model from hub.\n",
"|**data** |Path to the data that is to be used for evaluation. Can be .csv or .conll file in the CoNLL format \n",
"|**config** |Configuration for the tests to be performed, specified in form of a YAML file.\n",
"|**hub** |model hub to load from the path. Required if model param is passed as path.|\n",
"\n",
"| Parameter | Description |\n",
"| ------------- | ----------- |\n",
"| **task** | Task for which the model is to be evaluated (text-classification or ner) |\n",
"| **model** | Specifies the model(s) to be evaluated. Can be a dictionary or a list of dictionaries. Each dictionary should contain 'model' and 'hub' keys. If a path is specified, the dictionary must contain 'model' and 'hub' keys. |\n",
"| **data** | The data to be used for evaluation. A dictionary providing flexibility and options for data sources. It should include the following keys: <ul><li>data_source (mandatory): The source of the data.</li><li>subset (optional): The subset of the data.</li><li>feature_column (optional): The column containing the features.</li><li>target_column (optional): The column containing the target labels.</li><li>split (optional): The data split to be used.</li></ul> |\n",
"| **config** | Configuration for the tests to be performed, specified in the form of a YAML file. |\n",
"\n",
"\n",
"<br/>\n",
"<br/>"
Expand Down Expand Up @@ -242,7 +243,7 @@
},
"outputs": [],
"source": [
"harness = Harness(task=\"ner\", model=ner_model, data=\"sample.conll\", hub=\"johnsnowlabs\")"
"harness = Harness(task=\"ner\", model={\"model\": ner_model, \"hub\": \"johnsnowlabs\"}, data={\"data_source\" :\"sample.conll\"})"
]
},
{
Expand Down Expand Up @@ -1284,7 +1285,7 @@
}
],
"source": [
"harness = Harness.load(\"saved_test_configurations\",model=augmented_ner_model)"
"harness = Harness.load(\"saved_test_configurations\",model=augmented_ner_model,task=\"ner\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,14 @@
"<br/>\n",
"\n",
"\n",
"| Parameter | Description | \n",
"| - | - | \n",
"|**task** |Task for which the model is to be evaluated (text-classification or ner)|\n",
"|**model** |PipelineModel or path to a saved model or pretrained pipeline/model from hub.\n",
"|**data** |Path to the data that is to be used for evaluation. Can be .csv or .conll file in the CoNLL format \n",
"|**config** |Configuration for the tests to be performed, specified in form of a YAML file.\n",
"|**hub** |model hub to load from the path. Required if model param is passed as path.|\n",
"\n",
"| Parameter | Description |\n",
"| ------------- | ----------- |\n",
"| **task** | Task for which the model is to be evaluated (text-classification or ner) |\n",
"| **model** | Specifies the model(s) to be evaluated. Can be a dictionary or a list of dictionaries. Each dictionary should contain 'model' and 'hub' keys. If a path is specified, the dictionary must contain 'model' and 'hub' keys. |\n",
"| **data** | The data to be used for evaluation. A dictionary providing flexibility and options for data sources. It should include the following keys: <ul><li>data_source (mandatory): The source of the data.</li><li>subset (optional): The subset of the data.</li><li>feature_column (optional): The column containing the features.</li><li>target_column (optional): The column containing the target labels.</li><li>split (optional): The data split to be used.</li></ul> |\n",
"| **config** | Configuration for the tests to be performed, specified in the form of a YAML file. |\n",
"\n",
"\n",
"<br/>\n",
"<br/>"
Expand Down Expand Up @@ -416,7 +417,7 @@
},
"outputs": [],
"source": [
"h = Harness(task=\"ner\",model=spacy_model, data=\"/content/sample.conll\")"
"h = Harness(task=\"ner\",model={\"model\": spacy_model, \"hub\": \"spacy\"}, data={\"data_source\": \"/content/sample.conll\"})"
]
},
{
Expand Down
Loading