User Tools

Site Tools


informatica:inteligencia_artificial:beto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

informatica:inteligencia_artificial:beto [2023/03/01 22:27] – created joseinformatica:inteligencia_artificial:beto [2023/03/01 22:42] (current) jose
Line 1: Line 1:
 Fuente: https://colab.research.google.com/github/mrm8488/shared_colab_notebooks/blob/master/Using_Spanish_BERT_fine_tuned_for_Q%26A_pipelines.ipynb#scrollTo=2CdQh0Psl3U8 Fuente: https://colab.research.google.com/github/mrm8488/shared_colab_notebooks/blob/master/Using_Spanish_BERT_fine_tuned_for_Q%26A_pipelines.ipynb#scrollTo=2CdQh0Psl3U8
 +
 +Repositorio: https://github.com/dccuchile/beto
  
 Instalación Instalación
Line 34: Line 36:
      
 He probado metiéndole un texto entero y responde a las preguntas con trozos de texto que pueden ser la respuesta. He probado metiéndole un texto entero y responde a las preguntas con trozos de texto que pueden ser la respuesta.
 +
 +
 +====== CASED Y UNCASED ======
 +import torch
 +from transformers import BertForMaskedLM, BertTokenizer
 +
 +tokenizer = BertTokenizer.from_pretrained("pytorch/", do_lower_case=False)
 +model = BertForMaskedLM.from_pretrained("pytorch/")
 +e = model.eval()
 +
 +
 +
 +
 +
 +
 +
 +
informatica/inteligencia_artificial/beto.1677709658.txt.gz · Last modified: 2023/03/01 22:27 by jose