Skip to content

Commit

Permalink
Fix header typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SecroLoL committed Jan 5, 2024
1 parent 9c0050c commit a544c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stanza/models/lemma_classifier/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def load_doc_from_conll_file(path: str):
return stanza.utils.conll.CoNLL.conll2doc(path)


def load_dataset(data_path: str, batch_size=DEFAULT_BATCH_SIZE, get_counts: bool = False, label_decoder: dict = None) -> Tuple[List[List[str]], List[torch.tensor[int]], List[torch.tensor[int]], Mapping[int, int], Mapping[str, int]]:
def load_dataset(data_path: str, batch_size=DEFAULT_BATCH_SIZE, get_counts: bool = False, label_decoder: dict = None) -> Tuple[List[List[str]], List[torch.Tensor[int]], List[torch.Tensor[int]], Mapping[int, int], Mapping[str, int]]:

"""
Loads a data file into data batches for tokenized text sentences, token indices, and true labels for each sentence.
Expand Down

0 comments on commit a544c17

Please sign in to comment.