Update modules/text_analysis/morpho_analysis.py
Browse files
modules/text_analysis/morpho_analysis.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
import spacy
|
2 |
from collections import Counter
|
3 |
from spacy import displacy
|
@@ -114,7 +116,7 @@ def highlight_repeated_words(doc, word_colors):
|
|
114 |
return ' '.join(highlighted_text)
|
115 |
|
116 |
#################################################################################################
|
117 |
-
def generate_arc_diagram(doc):
|
118 |
arc_diagrams = []
|
119 |
for sent in doc.sents:
|
120 |
words = [token.text for token in sent]
|
|
|
1 |
+
##modules/text_analysis/morpho_analysis.py
|
2 |
+
|
3 |
import spacy
|
4 |
from collections import Counter
|
5 |
from spacy import displacy
|
|
|
116 |
return ' '.join(highlighted_text)
|
117 |
|
118 |
#################################################################################################
|
119 |
+
def generate_arc_diagram(doc, lang_code):
|
120 |
arc_diagrams = []
|
121 |
for sent in doc.sents:
|
122 |
words = [token.text for token in sent]
|