Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -165,9 +165,11 @@ ner_type_retriever = GoldenSillyRetriever(
|
|
165 |
|
166 |
relik_available_models = [
|
167 |
"relik-ie/relik-cie-small",
|
|
|
168 |
"sapienzanlp/relik-entity-linking-large",
|
169 |
"relik-ie/relik-entity-linking-large-robust",
|
170 |
"relik-ie/relik-relation-extraction-small",
|
|
|
171 |
"relik-ie/relik-relation-extraction-small-wikipedia-ner",
|
172 |
]
|
173 |
|
@@ -196,6 +198,19 @@ relik_models = {
|
|
196 |
},
|
197 |
reader_kwargs={"dataset_kwargs": {"use_nme": True}},
|
198 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
"relik-ie/relik-relation-extraction-small-wikipedia-ner": Relik.from_pretrained(
|
200 |
"relik-ie/relik-relation-extraction-small-wikipedia-ner",
|
201 |
device="cuda",
|
@@ -219,6 +234,16 @@ relik_models = {
|
|
219 |
TaskType.TRIPLET: wikidata_retriever,
|
220 |
},
|
221 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
"relik-ie/relik-entity-linking-large-robust": Relik.from_pretrained(
|
223 |
"relik-ie/relik-entity-linking-large-robust",
|
224 |
index={
|
|
|
165 |
|
166 |
relik_available_models = [
|
167 |
"relik-ie/relik-cie-small",
|
168 |
+
"relik-ie/relik-cie-xl",
|
169 |
"sapienzanlp/relik-entity-linking-large",
|
170 |
"relik-ie/relik-entity-linking-large-robust",
|
171 |
"relik-ie/relik-relation-extraction-small",
|
172 |
+
"relik-ie/relik-relation-extraction-large",
|
173 |
"relik-ie/relik-relation-extraction-small-wikipedia-ner",
|
174 |
]
|
175 |
|
|
|
198 |
},
|
199 |
reader_kwargs={"dataset_kwargs": {"use_nme": True}},
|
200 |
),
|
201 |
+
"relik-ie/relik-cie-xl": Relik.from_pretrained(
|
202 |
+
"relik-ie/relik-cie-xl",
|
203 |
+
device="cuda",
|
204 |
+
index={
|
205 |
+
TaskType.SPAN: wikipedia_index,
|
206 |
+
TaskType.TRIPLET: wikidata_index,
|
207 |
+
},
|
208 |
+
retriever={
|
209 |
+
TaskType.SPAN: wikipedia_retriever,
|
210 |
+
TaskType.TRIPLET: wikidata_retriever,
|
211 |
+
},
|
212 |
+
reader_kwargs={"dataset_kwargs": {"use_nme": True}},
|
213 |
+
),
|
214 |
"relik-ie/relik-relation-extraction-small-wikipedia-ner": Relik.from_pretrained(
|
215 |
"relik-ie/relik-relation-extraction-small-wikipedia-ner",
|
216 |
device="cuda",
|
|
|
234 |
TaskType.TRIPLET: wikidata_retriever,
|
235 |
},
|
236 |
),
|
237 |
+
"relik-ie/relik-relation-extraction-large": Relik.from_pretrained(
|
238 |
+
"relik-ie/relik-relation-extraction-large",
|
239 |
+
index={
|
240 |
+
TaskType.TRIPLET:wikidata_index,
|
241 |
+
},
|
242 |
+
device="cuda",
|
243 |
+
retriever={
|
244 |
+
TaskType.TRIPLET: wikidata_retriever,
|
245 |
+
},
|
246 |
+
),
|
247 |
"relik-ie/relik-entity-linking-large-robust": Relik.from_pretrained(
|
248 |
"relik-ie/relik-entity-linking-large-robust",
|
249 |
index={
|