license:cc-by-nc-nd-4.0 region:us
---
license: cc-by-nc-nd-4.0
---
---
language:
- de
---
# Law Topics Q&A Dataset - README

## Description

This repository contains a dataset of real questions and answers related to various law topics. The questions are sourced from real individuals, and the answers are provided by legal experts, who are qualified lawyers. The primary language of the dataset is German.

## Files

The dataset comes in three separate JSON Line files:

- `data_conversations_5k.jsonl`: Contains 5,000 conversations.
- `data_conversations_30k.jsonl`: Contains 30,000 conversations.
- `data_conversations_all_26082023.jsonl`: A complete dataset containing all conversations up to the date of August 26, 2023.

## Sample Row

The dataset is structured with the following columns:

- `question_title` (string): The title of the question
- `pricetag` (string): The cost associated with asking the question
- `expert_rating` (string): Rating given to the expert's answer, if any
- `date_question` (string): The date when the question was asked
- `area_of_law` (string): The field of law to which the question pertains
- `questions_user` (sequence): The list of questions from the user.
- `answers_expert` (sequence): The list of answers from the legal expert.

## Use Case

This dataset can be useful for researchers, students, and developers who are interested in:

- Legal NLP applications
- Training models for question-answering systems within the law domain
- Studying the structure and content of legal inquiries and expert responses
- Language translation services, specifically targeting legal topics

## Legal & Ethical Considerations

Please note that this dataset should not be used as a substitute for professional legal advice. The dataset is intended solely for educational and research purposes.

## License

This dataset is available under the cc-by-nc-nd-4.0 License.

## Sample Code to Load Dataset in Python

Here is a sample Python code snippet to load the dataset using the `jsonlines` library.

```python
import jsonlines

# Load 5k dataset
with jsonlines.open('data_conversations_5k.jsonl') as reader:
    for obj in reader:
        print(obj['question_title'])
        print(obj['questions_user'])
        print(obj['answers_expert'])
```

## Contributing

If you find any inconsistencies in the dataset or if you wish to contribute to this project, feel free to open a pull request or raise an issue.

## Contact Information

For any further questions or suggestions, please open an issue on this repository.