Skip to content

Commit 3d9b331

Browse files
authored
Update README.md
1 parent af6547a commit 3d9b331

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
if not graph.has_node(word):
2+
graph.add_node(word, encoded=encode_word_with_context(word, surrounding_words))
3+
14
import networkx as nx
25
nltk.download('wordnet')
36
def add_acronym_node_to_graph(graph, acronym, possible_meanings, context=None, relevance=0.5, related_nodes_weights=None):

0 commit comments

Comments
 (0)