Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,8 +50,6 @@ def extract_triples(text):
|
|
| 50 |
verb.lemma_.lower() in tfidf_keywords or
|
| 51 |
obj.text.lower() in tfidf_keywords):
|
| 52 |
triples.append((subj.text, verb.lemma_, obj.text))
|
| 53 |
-
if len(triples) == 10:
|
| 54 |
-
return triples
|
| 55 |
return triples
|
| 56 |
|
| 57 |
# === Visualization Function ===
|
|
|
|
| 50 |
verb.lemma_.lower() in tfidf_keywords or
|
| 51 |
obj.text.lower() in tfidf_keywords):
|
| 52 |
triples.append((subj.text, verb.lemma_, obj.text))
|
|
|
|
|
|
|
| 53 |
return triples
|
| 54 |
|
| 55 |
# === Visualization Function ===
|