Add usage code block to README.md
Browse files
README.md
CHANGED
|
@@ -88,6 +88,26 @@ The following corrections were applied:
|
|
| 88 |
|
| 89 |
These post-processing steps were applied to **all 1,065 Acts and 141 Bills** in the SINHALEGAL corpus.
|
| 90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
```
|
| 92 |
@misc{lasandi2026sinhalegalbenchmarkcorpusinformation,
|
| 93 |
title={SinhaLegal: A Benchmark Corpus for Information Extraction and Analysis in Sinhala Legislative Texts},
|
|
|
|
| 88 |
|
| 89 |
These post-processing steps were applied to **all 1,065 Acts and 141 Bills** in the SINHALEGAL corpus.
|
| 90 |
|
| 91 |
+
---
|
| 92 |
+
### Usage
|
| 93 |
+
|
| 94 |
+
You can load the dataset using the following code:
|
| 95 |
+
|
| 96 |
+
```
|
| 97 |
+
from datasets import load_dataset
|
| 98 |
+
|
| 99 |
+
ds = load_dataset("Minduli-Lasandi/SinhaLegal", split="train")
|
| 100 |
+
|
| 101 |
+
# Verify the number of rows
|
| 102 |
+
print(f"Number of rows: {len(ds)}")
|
| 103 |
+
|
| 104 |
+
# Print the first sample
|
| 105 |
+
print(ds[0])
|
| 106 |
+
|
| 107 |
+
```
|
| 108 |
+
---
|
| 109 |
+
### Citation
|
| 110 |
+
|
| 111 |
```
|
| 112 |
@misc{lasandi2026sinhalegalbenchmarkcorpusinformation,
|
| 113 |
title={SinhaLegal: A Benchmark Corpus for Information Extraction and Analysis in Sinhala Legislative Texts},
|