Update README.md
Browse files
README.md
CHANGED
@@ -25,7 +25,7 @@ Enhanced version from version 1.0 with larger dataset.
|
|
25 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
26 |
Step 1: Map all Chinese word from original text to Sino-Vietnamese with [map.json](https://huggingface.co/haruyuu/viT5_han-vie_v1.1/blob/main/map.json) file
|
27 |
|
28 |
-
|
29 |
with open('/kaggle/input/chingchongdingdong/map.json', encoding = 'utf-8') as f:
|
30 |
map = json.load(f)
|
31 |
global map
|
@@ -37,7 +37,7 @@ def mapping(text):
|
|
37 |
except:
|
38 |
continue
|
39 |
return text.strip()
|
40 |
-
|
41 |
|
42 |
Step 2: Load model and generate
|
43 |
|
|
|
25 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
26 |
Step 1: Map all Chinese word from original text to Sino-Vietnamese with [map.json](https://huggingface.co/haruyuu/viT5_han-vie_v1.1/blob/main/map.json) file
|
27 |
|
28 |
+
```python
|
29 |
with open('/kaggle/input/chingchongdingdong/map.json', encoding = 'utf-8') as f:
|
30 |
map = json.load(f)
|
31 |
global map
|
|
|
37 |
except:
|
38 |
continue
|
39 |
return text.strip()
|
40 |
+
```
|
41 |
|
42 |
Step 2: Load model and generate
|
43 |
|