informatica:inteligencia_artificial:beto
Differences
This shows you the differences between two versions of the page.
| informatica:inteligencia_artificial:beto [2023/03/01 22:27] – created jose | informatica:inteligencia_artificial:beto [2023/03/01 22:42] (current) – jose | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| Fuente: https:// | Fuente: https:// | ||
| + | |||
| + | Repositorio: | ||
| 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, | ||
| + | |||
| + | tokenizer = BertTokenizer.from_pretrained(" | ||
| + | model = BertForMaskedLM.from_pretrained(" | ||
| + | e = model.eval() | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
informatica/inteligencia_artificial/beto.1677709658.txt.gz · Last modified: by jose
