Spaces:
Runtime error
Runtime error
Update backupapp.py
Browse files- backupapp.py +0 -3
backupapp.py
CHANGED
@@ -1,13 +1,11 @@
|
|
1 |
import streamlit as st
|
2 |
import re
|
3 |
import json
|
4 |
-
|
5 |
import nltk
|
6 |
from nltk.corpus import stopwords
|
7 |
from nltk import FreqDist
|
8 |
nltk.download('punkt')
|
9 |
nltk.download('stopwords')
|
10 |
-
|
11 |
from graphviz import Digraph
|
12 |
from collections import Counter
|
13 |
|
@@ -57,7 +55,6 @@ def create_relationship_graph(words):
|
|
57 |
graph = Digraph()
|
58 |
for index, word in enumerate(words):
|
59 |
graph.node(str(index), word)
|
60 |
-
|
61 |
if index > 0:
|
62 |
graph.edge(str(index - 1), str(index), label=str(index))
|
63 |
return graph
|
|
|
1 |
import streamlit as st
|
2 |
import re
|
3 |
import json
|
|
|
4 |
import nltk
|
5 |
from nltk.corpus import stopwords
|
6 |
from nltk import FreqDist
|
7 |
nltk.download('punkt')
|
8 |
nltk.download('stopwords')
|
|
|
9 |
from graphviz import Digraph
|
10 |
from collections import Counter
|
11 |
|
|
|
55 |
graph = Digraph()
|
56 |
for index, word in enumerate(words):
|
57 |
graph.node(str(index), word)
|
|
|
58 |
if index > 0:
|
59 |
graph.edge(str(index - 1), str(index), label=str(index))
|
60 |
return graph
|