wesley7137
commited on
Commit
•
a049b1c
1
Parent(s):
763eace
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Question Complexity Rating Dataset
|
2 |
+
|
3 |
+
## Dataset Description
|
4 |
+
|
5 |
+
This dataset contains pairs of questions and their respective complexity ratings. The complexity ratings are provided on a scale from 0.0 to 1.0, where 0.0 indicates the simplest questions and 1.0 indicates the most complex questions. The dataset is intended to be used for training and evaluating models that classify or rank questions based on their complexity.
|
6 |
+
|
7 |
+
## Dataset Contents
|
8 |
+
|
9 |
+
The dataset is provided as a CSV file with the following columns:
|
10 |
+
|
11 |
+
- `instruction`: The question or prompt.
|
12 |
+
- `label`: The complexity rating of the question, a float between 0.0 and 1.0.
|
13 |
+
|
14 |
+
### Example
|
15 |
+
|
16 |
+
| instruction | label |
|
17 |
+
| ---------------------------------------------- | ----- |
|
18 |
+
| When did Virgin Australia start operating? | 0.2 |
|
19 |
+
| Which is a species of fish? Tope or Rope | 0.8 |
|
20 |
+
| Why can camels survive for long without water? | 0.5 |
|
21 |
+
|
22 |
+
## Usage
|
23 |
+
|
24 |
+
The dataset can be used for various natural language processing (NLP) tasks such as:
|
25 |
+
|
26 |
+
- Complexity prediction
|
27 |
+
- Question ranking
|
28 |
+
- Model evaluation
|
29 |
+
- Transfer learning for related tasks
|
30 |
+
|
31 |
+
## Use Cases
|
32 |
+
|
33 |
+
### 1. Complexity Prediction
|
34 |
+
|
35 |
+
Train a model to predict the complexity of new questions based on the provided ratings. This can be useful in educational technology, customer support, and other domains where question complexity is a relevant factor.
|
36 |
+
|
37 |
+
### 2. Question Ranking
|
38 |
+
|
39 |
+
Rank a set of questions by their complexity to prioritize easier questions for beginners and more complex questions for advanced users.
|
40 |
+
|
41 |
+
### 3. Model Evaluation
|
42 |
+
|
43 |
+
Use the dataset to evaluate the performance of models designed to assess or rank question complexity.
|
44 |
+
|
45 |
+
## How to Use the Dataset
|
46 |
+
|
47 |
+
To use the dataset, load the CSV file using a library like pandas and preprocess it as needed for your specific use case.
|
48 |
+
|
49 |
+
### Loading the Dataset
|
50 |
+
|
51 |
+
```python
|
52 |
+
import pandas as pd
|
53 |
+
|
54 |
+
# Load the dataset
|
55 |
+
df = pd.read_csv('path_to_your_dataset.csv')
|
56 |
+
|
57 |
+
# Display the first few rows of the dataset
|
58 |
+
print(df.head())
|
59 |
+
```
|
60 |
+
|
61 |
+
## Training a Model
|
62 |
+
|
63 |
+
Here is a simple example of how to train a model using the dataset:
|
64 |
+
|
65 |
+
```python
|
66 |
+
import pandas as pd
|
67 |
+
from sklearn.model_selection import train_test_split
|
68 |
+
from sklearn.linear_model import LinearRegression
|
69 |
+
|
70 |
+
# Load the dataset
|
71 |
+
df = pd.read_csv('path_to_your_dataset.csv')
|
72 |
+
|
73 |
+
# Split the dataset into training and test sets
|
74 |
+
train_df, test_df = train_test_split(df, test_size=0.2, random_state=42)
|
75 |
+
|
76 |
+
# Extract features and labels
|
77 |
+
X_train = train_df['instruction']
|
78 |
+
y_train = train_df['label']
|
79 |
+
X_test = test_df['instruction']
|
80 |
+
y_test = test_df['label']
|
81 |
+
|
82 |
+
# Convert text data to numerical features (example using TF-IDF)
|
83 |
+
from sklearn.feature_extraction.text import TfidfVectorizer
|
84 |
+
vectorizer = TfidfVectorizer()
|
85 |
+
|
86 |
+
X_train_tfidf = vectorizer.fit_transform(X_train)
|
87 |
+
X_test_tfidf = vectorizer.transform(X_test)
|
88 |
+
|
89 |
+
# Train a simple model (example using Linear Regression)
|
90 |
+
model = LinearRegression()
|
91 |
+
model.fit(X_train_tfidf, y_train)
|
92 |
+
|
93 |
+
# Evaluate the model
|
94 |
+
predictions = model.predict(X_test_tfidf)
|
95 |
+
print(f"Predictions: {predictions}")
|
96 |
+
```
|
97 |
+
|
98 |
+
Citation
|
99 |
+
If you use this dataset in your research, please cite it as follows:
|
100 |
+
|
101 |
+
```sql
|
102 |
+
@dataset{question_complexity_rating_2024,
|
103 |
+
title = {Question Complexity Rating Dataset},
|
104 |
+
author = {Wes Lagarde},
|
105 |
+
year = {2024},
|
106 |
+
url = {https://huggingface.co/wesley7137/question_complexity_classification},
|
107 |
+
description = {A dataset of question and complexity rating pairs for natural language processing tasks.}
|
108 |
+
}
|
109 |
+
```
|
110 |
+
|
111 |
+
License
|
112 |
+
This dataset is licensed under the Apache 2.0 License.
|
113 |
+
|
114 |
+
Acknowledgements
|
115 |
+
We would like to thank all contributors and the community for their valuable feedback and support.
|
116 |
+
|
117 |
+
css
|
118 |
+
Copy code
|
119 |
+
|
120 |
+
This README file provides a comprehensive overview of your dataset, including its contents, usage, and example code for loading and using the dataset. Adjust the content as necessary to fit your specific dataset details and preferences.
|