Skip to content
Snippets Groups Projects
Commit 82d70415 authored by Maja Jablonska's avatar Maja Jablonska
Browse files

Add recommnded import to universal_dependencies_dataset_reader.py

parent bcecfd40
1 merge request!46Merge COMBO 3.0 into master
...@@ -4,6 +4,7 @@ Author: Mateusz Klimaszewski ...@@ -4,6 +4,7 @@ Author: Mateusz Klimaszewski
""" """
import copy import copy
import pathlib import pathlib
from abc import ABC
from typing import List, Any, Dict, Iterable, Tuple from typing import List, Any, Dict, Iterable, Tuple
import conllu import conllu
...@@ -23,7 +24,7 @@ from conllu import parser ...@@ -23,7 +24,7 @@ from conllu import parser
from combo.utils import checks, pad_sequence_to_length from combo.utils import checks, pad_sequence_to_length
class UniversalDependenciesDatasetReader(DatasetReader): class UniversalDependenciesDatasetReader(DatasetReader, ABC):
def __init__( def __init__(
self, self,
token_indexers: Dict[str, TokenIndexer] = None, token_indexers: Dict[str, TokenIndexer] = None,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment