Files
Open-Assistant/notebooks/data-augmentation/changemyview-builder/README.md
T
kayjay 1eb3f05c44 PR: Create notebook to convert r/changemyview data (#839)
* (#737) Create notebook to convert r/changemyview data into cleaner format
2023-01-26 09:49:03 +00:00

37 lines
1.8 KiB
Markdown

# README
## Introduction
This program converts data obtained from the subreddit r/changemyview into a cleaner format for further data processing. The data is not clean enough to be used directly in a model yet, and additional preprocessing is required.
## Data Format
The cleaned data is stored in an Apache Parquet file with the following columns:
| Column Name | Description | Data Type |
|-------------|------------------------------------------------------------------------|----------------|
| INSTRUCTION | Post title + body text | String |
| RESPONSE | Body text of comments attempting to change OP's mind of `INSTRUCTION`. | List\<String\> |
| SOURCE | Permalink to the reddit post | String |
| METADATA | Metadata related to `RESPONSE`. | Dict\<Variant> |
### Metadata
Currently, metadata is only broken into one category:
- `detoxify_labels`- A Dictionary of values outputted by the [Unitaryai Detoxifier](https://github.com/unitaryai/detoxify) model, fitted to every comment under any given post.
## Usage
To use the program, follow these instructions:
1. **Clone the repository** - `git clone https://github.com/LAION-AI/Open-Assistant.git`
2. **Navigate to the project directory** - `cd notebooks/data-augmentation/changemyview-builder`
3. **Open the Jupyter Notebook** - `jupyter notebook data_processor.ipynb`
4. **Run the program** - Go through the notebook and run the cells
## Contributing
If you would like to contribute to this project, please fork the repository and submit a pull request with your changes.
## License
This project is licensed under the Apache-2.0 License - see the [LICENSE](LICENSE) file for details.