Skip to content
Snippets Groups Projects
Commit b2ae0e1d authored by Maja Jabłońska's avatar Maja Jabłońska
Browse files

Update annotations for token indexers

parent b5a74154
Branches
Tags
1 merge request!46Merge COMBO 3.0 into master
"""
Adapted from COMBO
Authors: Mateusz Klimaszewski, Lukasz Pszenny
"""
from typing import Optional, Dict, Any, List, Tuple from typing import Optional, Dict, Any, List, Tuple
from overrides import overrides from overrides import overrides
......
"""
Adapted from AllenNLP
https://github.com/allenai/allennlp/blob/main/allennlp/data/token_indexers/pretrained_transformer_indexer.py
"""
from typing import Dict, List, Optional, Tuple, Any from typing import Dict, List, Optional, Tuple, Any
import logging import logging
import torch import torch
......
"""
Adapted from AllenNLP
https://github.com/allenai/allennlp/blob/main/allennlp/data/token_indexers/pretrained_transformer_mismatched_indexer.py
"""
from typing import Dict, List, Any, Optional from typing import Dict, List, Any, Optional
import logging import logging
......
"""Custom character token indexer.""" """
Custom character token indexer.
Adapted from COMBO.
Author: Mateusz Klimaszewski
"""
import itertools import itertools
from typing import List, Dict from typing import List, Dict
......
"""Features indexer.""" """Features indexer.
Adapted from COMBO.
Author: Mateusz Klimaszewski
"""
import collections import collections
from abc import ABC from abc import ABC
from typing import List, Dict from typing import List, Dict
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment