Commit 63977dcc authored by schnurr's avatar schnurr
Browse files

fix

parent ec51c844
Loading
Loading
Loading
Loading
+2 −2
Changes for probing.py: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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"])
    sent1roots.append([token for token in sent1 if token.dep_ == "ROOT"][0])
    sentence_tokens.remove(dep_hierarchy1[0][0])

    while len(sentence_tokens) != 0:
@@ -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"])
    sent2roots.append([token for token in sent2 if token.dep_ == "ROOT"][0])
    sentence_tokens.remove(dep_hierarchy2[0][0])

    while len(sentence_tokens) != 0: