Commit 7fa82293 authored by schnurr's avatar schnurr
Browse files

Edit docstrings

parent 82c3f532
Loading
Loading
Loading
Loading
+2 −2
Changes for src/probing.py: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ def get_random_string(length):

def mask_token(pos_tag):
    """
    For every sentence in the dataframe, mask that token whose POS matches the formal parameter and is also the highest in the dependency tree's structure.
    For every sentence in the dataframe, mask that token whose POS matches the formal parameter and is also the highest in the dependency tree's structure. If there's more than one option, take that token which comes first in the sentence.
    Return the changed dataframe.
    """
    df = STSB_Dataset('../data/stsbenchmark/sts-test.csv').as_dataframe
@@ -100,7 +100,7 @@ def mask_token(pos_tag):

def mask_first(pos_tag):
     """
    For every sentence in the dataframe, mask that token whose POS matches the formal parameter.
    For every sentence in the dataframe, mask the first token whose POS matches the formal parameter.
    Return the changed dataframe.
    """
    df = STSB_Dataset('../data/stsbenchmark/sts-test.csv').as_dataframe