Loading probing.py +2 −2 Changes for probing.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ for sent1 in sentences1_nlp: sentence_tokens = [token for token in sent1] dep_hierarchy1 = [] dep_hierarchy1.append([token for token in sent1 if token.dep_ == "ROOT"]) sent1roots.append([token for token in sent1 if token.dep_ == "ROOT"][0]) sent1roots.append([token.text for token in sent1 if token.dep_ == "ROOT"][0]) sentence_tokens.remove(dep_hierarchy1[0][0]) while len(sentence_tokens) != 0: Loading @@ -46,7 +46,7 @@ for sent2 in sentences2_nlp: sentence_tokens = [token for token in sent2] dep_hierarchy2 = [] dep_hierarchy2.append([token for token in sent2 if token.dep_ == "ROOT"]) sent2roots.append([token for token in sent2 if token.dep_ == "ROOT"][0]) sent2roots.append([token.text for token in sent2 if token.dep_ == "ROOT"][0]) sentence_tokens.remove(dep_hierarchy2[0][0]) while len(sentence_tokens) != 0: Loading Loading
probing.py +2 −2 Changes for probing.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ for sent1 in sentences1_nlp: sentence_tokens = [token for token in sent1] dep_hierarchy1 = [] dep_hierarchy1.append([token for token in sent1 if token.dep_ == "ROOT"]) sent1roots.append([token for token in sent1 if token.dep_ == "ROOT"][0]) sent1roots.append([token.text for token in sent1 if token.dep_ == "ROOT"][0]) sentence_tokens.remove(dep_hierarchy1[0][0]) while len(sentence_tokens) != 0: Loading @@ -46,7 +46,7 @@ for sent2 in sentences2_nlp: sentence_tokens = [token for token in sent2] dep_hierarchy2 = [] dep_hierarchy2.append([token for token in sent2 if token.dep_ == "ROOT"]) sent2roots.append([token for token in sent2 if token.dep_ == "ROOT"][0]) sent2roots.append([token.text for token in sent2 if token.dep_ == "ROOT"][0]) sentence_tokens.remove(dep_hierarchy2[0][0]) while len(sentence_tokens) != 0: Loading