Update README.md
Browse files
README.md
CHANGED
@@ -20,6 +20,13 @@ To use the Spanish model use the TrueCase.py file uploaded to this repository
|
|
20 |
|
21 |
https://huggingface.co/HURIDOCS/spanish_truecasing/blob/main/TrueCaser.py
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
|
25 |
## Notes
|
|
|
20 |
|
21 |
https://huggingface.co/HURIDOCS/spanish_truecasing/blob/main/TrueCaser.py
|
22 |
|
23 |
+
from TrueCaser import TrueCaser
|
24 |
+
|
25 |
+
model_path = "spanish.dist"
|
26 |
+
spanish_truecasing = TrueCaser(model_path)
|
27 |
+
|
28 |
+
text = 'informe no.78/08. petición 785-05 admisibilidad. vicente arturo villanueva ortega y otros.'
|
29 |
+
print(spanish_truecasing.get_true_case(text))
|
30 |
|
31 |
|
32 |
## Notes
|