lannliat
commited on
Commit
•
b6a9147
1
Parent(s):
7d3b486
Update readme
Browse files
README.md
CHANGED
@@ -51,12 +51,14 @@ Loads [OPUS](https://opus.nlpl.eu/) as HuggingFace dataset. OPUS is an open para
|
|
51 |
Given a `src` and `tgt` language, this repository can load *all* available parallel corpus. To my knowledge, other OPUS datasets on Huggingface loads a specific corpus
|
52 |
|
53 |
|
54 |
-
**Requirements**.
|
55 |
|
56 |
```
|
|
|
|
|
|
|
57 |
git clone https://github.com/larrylawl/OpusTools.git
|
58 |
pip install -e OpusTools/opustools_pkg
|
59 |
-
pip install pandas
|
60 |
```
|
61 |
|
62 |
**Example Usage**.
|
@@ -98,7 +100,10 @@ Available languages can be viewed on the [OPUS API](https://opus.nlpl.eu/opusapi
|
|
98 |
|
99 |
### Data Instances
|
100 |
|
101 |
-
|
|
|
|
|
|
|
102 |
|
103 |
### Data Fields
|
104 |
|
|
|
51 |
Given a `src` and `tgt` language, this repository can load *all* available parallel corpus. To my knowledge, other OPUS datasets on Huggingface loads a specific corpus
|
52 |
|
53 |
|
54 |
+
**Requirements**.
|
55 |
|
56 |
```
|
57 |
+
pip install pandas
|
58 |
+
|
59 |
+
# pip install my fork of `opustools`
|
60 |
git clone https://github.com/larrylawl/OpusTools.git
|
61 |
pip install -e OpusTools/opustools_pkg
|
|
|
62 |
```
|
63 |
|
64 |
**Example Usage**.
|
|
|
100 |
|
101 |
### Data Instances
|
102 |
|
103 |
+
```
|
104 |
+
{'src': 'In the beginning God created the heavens and the earth .',
|
105 |
+
'tgt': 'Pada mulanya , waktu Allah mulai menciptakan alam semesta'}
|
106 |
+
```
|
107 |
|
108 |
### Data Fields
|
109 |
|