You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 015ce74
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ Take a look at our official page for user documentation and examples: [langtest.
40
40
41
41
```python
42
42
# Install langtest
43
-
!pip install langtesttransformers==4.28.1
43
+
!pip install langtest[transformers]
44
44
45
45
# Import and create a Harness object
46
46
from langtest import Harness
@@ -67,6 +67,27 @@ We propose here an early stage open-source community project that aims to fill t
67
67
68
68
[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.
69
69
70
+
## Comparing Benchmark Datasets: Use Cases and Evaluations
71
+
72
+
Langtest comes with different datasets to test your models, covering a wide range of use cases and evaluation scenarios.
|[**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. |[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/BoolQ_dataset.ipynb)|
77
+
|[**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. |[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/NQ_open_dataset.ipynb)|
78
+
|[**TruthfulQA**](https://aclanthology.org/2022.acl-long.229/)| Evaluate the model's capability to answer questions accurately and truthfully based on the provided information. |[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/TruthfulQA_dataset.ipynb)|
79
+
|[**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. |[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/mmlu_dataset.ipynb)|
80
+
|[**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. |[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/NarrativeQA_Question_Answering.ipynb)|
81
+
|[**HellaSwag**](https://aclanthology.org/P19-1472/)| Evaluate your model's ability in completions of sentences. |[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/HellaSwag_Question_Answering.ipynb)|
82
+
|[**Quac**](https://aclanthology.org/D18-1241/)| Evaluate your model's ability to answer questions given a conversational context, focusing on dialogue-based question-answering. |[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/quac_dataset.ipynb)|
83
+
|[**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. |[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/quac_dataset.ipynb)|
84
+
|[**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. |[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/BBQ_dataset.ipynb)|
85
+
|[**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. |[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/dataset-notebooks/XSum_dataset.ipynb)|
86
+
|[**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. | [](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/OpenAI_QA_Testing_Notebook.ipynb)
87
+
88
+
> **Note**
89
+
> For usage and documentation, head over to [langtest.org](https://langtest.org/docs/pages/docs/data#question-answering)
Copy file name to clipboardExpand all lines: demo/tutorials/llm_notebooks/AI21_QA_Summarization_Testing_Notebook.ipynb
+3-19Lines changed: 3 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
"id": "3o5sAOfwL5qd"
18
18
},
19
19
"source": [
20
-
"[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/AI21_QA_Testing_Notebook.ipynb)"
20
+
"[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/AI21_QA_Summarization_Testing_Notebook.ipynb)"
21
21
]
22
22
},
23
23
{
@@ -39,7 +39,7 @@
39
39
"id": "26qXWhCYhHAt"
40
40
},
41
41
"source": [
42
-
"# Getting started with LangTest on John Snow Labs"
Copy file name to clipboardExpand all lines: demo/tutorials/llm_notebooks/Azure_OpenAI_QA_Summarization_Testing_Notebook.ipynb
+3-25Lines changed: 3 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
"id": "3o5sAOfwL5qd"
18
18
},
19
19
"source": [
20
-
"[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/Azure_OpenAI_QA_Testing_Notebook.ipynb)"
20
+
"[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/Azure_OpenAI_QA_Summarization_Testing_Notebook.ipynb)"
21
21
]
22
22
},
23
23
{
@@ -39,29 +39,7 @@
39
39
"id": "26qXWhCYhHAt"
40
40
},
41
41
"source": [
42
-
"# Getting started with LangTest on John Snow Labs"
Copy file name to clipboardExpand all lines: demo/tutorials/llm_notebooks/Cohere_QA_Summarization_Testing_Notebook.ipynb
+3-25Lines changed: 3 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
"id": "3o5sAOfwL5qd"
18
18
},
19
19
"source": [
20
-
"[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/Cohere_QA_Testing_Notebook.ipynb)"
20
+
"[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/Cohere_QA_Summarization_Testing_Notebook.ipynb)"
21
21
]
22
22
},
23
23
{
@@ -39,29 +39,7 @@
39
39
"id": "26qXWhCYhHAt"
40
40
},
41
41
"source": [
42
-
"# Getting started with LangTest on John Snow Labs"
Copy file name to clipboardExpand all lines: demo/tutorials/llm_notebooks/HuggingFaceHub_QA_Summarization_Testing_Notebook.ipynb
+3-31Lines changed: 3 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,5 @@
1
1
{
2
2
"cells": [
3
-
{
4
-
"attachments": {},
5
-
"cell_type": "markdown",
6
-
"metadata": {
7
-
"id": "yR6kjOaiheKN"
8
-
},
9
-
"source": [
10
-
"# Harness and Its Parameters\n",
11
-
"\n",
12
-
"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."
13
-
]
14
-
},
15
3
{
16
4
"attachments": {},
17
5
"cell_type": "markdown",
@@ -29,7 +17,7 @@
29
17
"id": "3o5sAOfwL5qd"
30
18
},
31
19
"source": [
32
-
"[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/HuggingFaceHub_QA_Testing_Notebook.ipynb)"
20
+
"[](https://colab.research.google.com/github/JohnSnowLabs/langtest/blob/main/demo/tutorials/llm_notebooks/HuggingFaceHub_QA_Summarization_Testing_Notebook.ipynb)"
33
21
]
34
22
},
35
23
{
@@ -51,7 +39,7 @@
51
39
"id": "26qXWhCYhHAt"
52
40
},
53
41
"source": [
54
-
"# Getting started with LangTest on John Snow Labs"
0 commit comments