Update README.md
Browse files
README.md
CHANGED
@@ -50,6 +50,16 @@ This gold standard corpus was created in the context of a project at the ObTIC l
|
|
50 |
The corpus was then used to train a [CamemBERT NER model](https://huggingface.co/compnet-renard/camembert-base-literary-NER-v2) in collaboration with Arthur Amalvy and Vincent Labatut, from Avignon University.
|
51 |
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
# Citation
|
54 |
|
55 |
If you use this dataset in your research, please cite:
|
|
|
50 |
The corpus was then used to train a [CamemBERT NER model](https://huggingface.co/compnet-renard/camembert-base-literary-NER-v2) in collaboration with Arthur Amalvy and Vincent Labatut, from Avignon University.
|
51 |
|
52 |
|
53 |
+
# Usage
|
54 |
+
|
55 |
+
```python
|
56 |
+
>>> from datasets import load_dataset
|
57 |
+
>>> dataset = load_dataset("compnet-renard/7-romans-ner")
|
58 |
+
>>> dataset["train"][0]
|
59 |
+
{'tokens': ['Quand', 'la', 'caissière', 'lui', 'eut', 'rendu', 'la', 'monnaie', 'de', 'sa', 'pièce', 'de', 'cent', 'sous', ',', 'Georges', 'Duroy', 'sortit', 'du', 'restaurant', '.'], 'labels': [8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 3, 7, 8, 8, 8, 8], 'novel': 'BelAmi'}
|
60 |
+
```
|
61 |
+
|
62 |
+
|
63 |
# Citation
|
64 |
|
65 |
If you use this dataset in your research, please cite:
|