raulgdp commited on
Commit
c76abd8
·
verified ·
1 Parent(s): a3f1705

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -30,7 +30,7 @@ More information needed
30
  Para usar el modelo y tratar de que las etiquetas funcionen correctamente les comparto un script que usa el modelo
31
  como pipeline:
32
 
33
- ''' from transformers import AutoConfig, AutoTokenizer, AutoModelForTokenClassification
34
  from peft import PeftModel
35
  import torch
36
 
@@ -146,7 +146,7 @@ entities = decode_predictions(text, predictions, word_ids)
146
  # Mostrar solo entidades relevantes
147
  for word, label in entities:
148
  if label != "O":
149
- print(f"{word:35} {label}") '''
150
 
151
 
152
  ## Training and evaluation data
 
30
  Para usar el modelo y tratar de que las etiquetas funcionen correctamente les comparto un script que usa el modelo
31
  como pipeline:
32
 
33
+ ``` from transformers import AutoConfig, AutoTokenizer, AutoModelForTokenClassification
34
  from peft import PeftModel
35
  import torch
36
 
 
146
  # Mostrar solo entidades relevantes
147
  for word, label in entities:
148
  if label != "O":
149
+ print(f"{word:35} {label}") ```
150
 
151
 
152
  ## Training and evaluation data