Datasets:
pavan-naik
commited on
add sample and usage to README
Browse files
README.md
CHANGED
@@ -40,6 +40,43 @@ While `kn` translations are available in the NLLB dataset, their quality is poor
|
|
40 |
- Filtered: Minimum 5 words in both English and NLLB-translated Kannada texts
|
41 |
- Train-test split: 2:1 ratio
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
## Use Cases
|
44 |
|
45 |
- Evaluating NLLB translations for English-Kannada
|
|
|
40 |
- Filtered: Minimum 5 words in both English and NLLB-translated Kannada texts
|
41 |
- Train-test split: 2:1 ratio
|
42 |
|
43 |
+
|
44 |
+
## Sample Dataset
|
45 |
+
|
46 |
+
| en | kn | kn_nllb |
|
47 |
+
|---|---|---|
|
48 |
+
| The weather is beautiful today. | ಇಂದು ಹವಾಮಾನ ಅದ್ಭುತವಾಗಿದೆ. | ಇಂದು ಹವಾಮಾನ ಸುಂದರವಾಗಿದೆ. |
|
49 |
+
| I love reading interesting books. | ನಾನು ಆಸಕ್ತಿದಾಯಕ ಪುಸ್ತಕಗಳನ್ನು ಓದಲು ಇಷ್ಟಪಡುತ್ತೇನೆ. | ನಾನು ಆಸಕ್ತಿದಾಯಕ ಪುಸ್ತಕಗಳನ್ನು ಓದಲು ಪ್ರೀತಿಸುತ್ತೇನೆ. |
|
50 |
+
|
51 |
+
## Loading the Dataset
|
52 |
+
|
53 |
+
### Using Pandas
|
54 |
+
```python
|
55 |
+
import pandas as pd
|
56 |
+
|
57 |
+
# Load individual splits
|
58 |
+
train_df = pd.read_csv('train.csv')
|
59 |
+
test_df = pd.read_csv('test.csv')
|
60 |
+
valid_df = pd.read_csv('validation.csv')
|
61 |
+
```
|
62 |
+
|
63 |
+
### Using HuggingFace 🤗 Datasets
|
64 |
+
```python
|
65 |
+
from datasets import load_dataset
|
66 |
+
|
67 |
+
# Load from HuggingFace Hub
|
68 |
+
dataset = load_dataset("username/mt-nllb-en-kn")
|
69 |
+
|
70 |
+
# Access splits
|
71 |
+
train_data = dataset["train"]
|
72 |
+
test_data = dataset["test"]
|
73 |
+
validation_data = dataset["validation"]
|
74 |
+
|
75 |
+
# Example usage
|
76 |
+
print(train_data[0]) # Print first example
|
77 |
+
```
|
78 |
+
|
79 |
+
|
80 |
## Use Cases
|
81 |
|
82 |
- Evaluating NLLB translations for English-Kannada
|