gabriel-p commited on
Commit
8777d16
1 Parent(s): 9ca4613

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -0
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