efederici commited on
Commit
290c1b4
1 Parent(s): 05bdc29

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -16,7 +16,7 @@ widget:
16
  example_title: "Notre-Dame"
17
  ---
18
 
19
- # text2tags-it
20
 
21
  The model has been trained on a collection of 28k news articles with tags. Its purpose is to create tags suitable for the given article. We can use this model also for information-retrieval purposes (GenQ), fine-tuning sentence-transformers for asymmetric semantic search.
22
 
@@ -27,8 +27,8 @@ Sample code with an article from IlPost:
27
  ```python
28
  from transformers import T5ForConditionalGeneration,T5Tokenizer
29
 
30
- model = T5ForConditionalGeneration.from_pretrained("efederici/text2tags-it")
31
- tokenizer = T5Tokenizer.from_pretrained("efederici/text2tags-it")
32
 
33
  article = '''
34
  Da bambino era preoccupato che al mondo non ci fosse più nulla da scoprire. Ma i suoi stessi studi gli avrebbero dato torto: insieme a James Watson, nel 1953 Francis Crick strutturò il primo modello di DNA, la lunga sequenza di codici che identifica ogni essere vivente, rendendolo unico e diverso da tutti gli altri.
 
16
  example_title: "Notre-Dame"
17
  ---
18
 
19
+ # text2tags
20
 
21
  The model has been trained on a collection of 28k news articles with tags. Its purpose is to create tags suitable for the given article. We can use this model also for information-retrieval purposes (GenQ), fine-tuning sentence-transformers for asymmetric semantic search.
22
 
 
27
  ```python
28
  from transformers import T5ForConditionalGeneration,T5Tokenizer
29
 
30
+ model = T5ForConditionalGeneration.from_pretrained("efederici/text2tags")
31
+ tokenizer = T5Tokenizer.from_pretrained("efederici/text2tags")
32
 
33
  article = '''
34
  Da bambino era preoccupato che al mondo non ci fosse più nulla da scoprire. Ma i suoi stessi studi gli avrebbero dato torto: insieme a James Watson, nel 1953 Francis Crick strutturò il primo modello di DNA, la lunga sequenza di codici che identifica ogni essere vivente, rendendolo unico e diverso da tutti gli altri.