https://github.com/nicolay-r/parlai_bookchar_task
A ParlAI ๐ฆ task utilized in studies r Personality Profiling for "Literary Character Dialogue Agents with Human Level Attributes"
https://github.com/nicolay-r/parlai_bookchar_task
agents parlai setup tasks
Last synced: 8 months ago
JSON representation
A ParlAI ๐ฆ task utilized in studies r Personality Profiling for "Literary Character Dialogue Agents with Human Level Attributes"
- Host: GitHub
- URL: https://github.com/nicolay-r/parlai_bookchar_task
- Owner: nicolay-r
- Created: 2023-06-27T11:17:53.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-30T19:26:01.000Z (over 1 year ago)
- Last Synced: 2025-04-05T21:18:11.910Z (11 months ago)
- Topics: agents, parlai, setup, tasks
- Language: Python
- Homepage: https://github.com/nicolay-r/book-persona-retriever
- Size: 50.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Literature Dialogue Response Task (LDR) ๐ โข [](https://x.com/nicolayr_/status/1801009815784677862)

[](https://x.com/nicolayr_/status/1801009815784677862)
> โ ๏ธ **Disclaimer**: this repository setups the task for the predefined `train` and `valid` splits. In order to replicate studies on different splits you have to manually update the related parts.
> We believe that ParlAI supports task initialization in Cross-Validation mode, however it goes beyond the capabilities of this project version.
This repository represent a supplementary material for the [`nicolay-r/book-persona-retreiver`](https://github.com/nicolay-r/book-persona-retriever) experiments organization ๐งช mentioneed in paper
[Personality Profiling for Literary Character Dialogue Agents with Human Level Attributes (**pre-print**)](https://www.dropbox.com/scl/fi/0c2axh97hadolwphgu7it/rusnachenko2024personality.pdf?rlkey=g2yyzv01th2rjt4o1oky0q8zc&st=omssztha&dl=1)
that has been accepted for *Long Paper* track at [LOD-2024](https://lod2024.icas.events/).
## Adding task into ParlAI ๐ฆ
[](https://colab.research.google.com/github/nicolay-r/deep-book-processing/blob/master/parlai_gutenberg_experiments.ipynb)
You have to accomplish **three steps below** in order to start experiment with ParlAI ๐ฆ dialgue agents in the related task.
These steps are as follows:
๐ 1. Add this entry into ParlAI [`task_list.py`](https://github.com/facebookresearch/ParlAI/blob/main/parlai/tasks/task_list.py) for registering this task:
```json
{
"id": "GutenbertBookChars",
"display_name": "GutenbertBookChars",
"task": "gutenbergbookchars",
"tags": ["ChiteChat"],
"description": (
"Dataset of speaker utterances from ProjectGutenberg with their spectrums"
)
}
```
๐ 2. Follow the [`setup.sh`](setup.sh) to create folder `GutenbertBookChars` in the `ParlAI` project.
๐ 3. Display dataset data in `parlai/scripts/` to make sure that the task is available:
```bash
python display_data.py --task gutenbergbookchars
```
You can also froceed with the related [notebook on GoogleColab](https://colab.research.google.com/github/nicolay-r/deep-book-processing/blob/master/parlai_gutenberg_experiments.ipynb)
## References
You can cite this work as follows:
```bibtex
@proceedings{rusnachenko2024personality,
title = {Personality Profiling for Literary Character Dialogue Agents with Human Level Attributes}
authors = {Rusnachenko, Nicolay and Liang, Huizhi}
booktitle = {Proceedings of the 10th International Conference on Machine Learning, Optimization, and Data Science (LOD)},
year = {2024},
month = sep,
days = {22--25},
address = {Castiglione della Pescaia (Grosseto), Tuscany, Italy},
publisher = {Springer}
}
```