Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -324,7 +324,7 @@ if len(match_df) > 0:
|
|
324 |
# extra filtering
|
325 |
|
326 |
instances = instances[instances.apply(lambda x: x.source_wikidata in [source_wikidata, target_wikidata] and x.target_wikidata in [source_wikidata, target_wikidata], axis=1)]
|
327 |
-
neg_instances = neg_instances[neg_instances.apply(lambda x: x.source_wikidata in [source_wikidata, target_wikidata] and x.target_wikidata in [source_wikidata, target_wikidata], axis=1)]
|
328 |
|
329 |
st.write(f"**Total Number of Inference Instances:** {int(rel_data['n_evidence'])}")
|
330 |
st.write(f"**Number of Instances that support the most frequent relation:** {int(rel_data['n_support'])}")
|
|
|
324 |
# extra filtering
|
325 |
|
326 |
instances = instances[instances.apply(lambda x: x.source_wikidata in [source_wikidata, target_wikidata] and x.target_wikidata in [source_wikidata, target_wikidata], axis=1)]
|
327 |
+
# neg_instances = neg_instances[neg_instances.apply(lambda x: x.source_wikidata in [source_wikidata, target_wikidata] and x.target_wikidata in [source_wikidata, target_wikidata], axis=1)]
|
328 |
|
329 |
st.write(f"**Total Number of Inference Instances:** {int(rel_data['n_evidence'])}")
|
330 |
st.write(f"**Number of Instances that support the most frequent relation:** {int(rel_data['n_support'])}")
|