jaibadachiya commited on
Commit
4fcbe36
·
verified ·
1 Parent(s): e942dfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
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 ===