Skip to content
Snippets Groups Projects
Commit 07d074d7 authored by Maja Jabłońska's avatar Maja Jabłońska Committed by Martyna Wiącek
Browse files

Update annotations for token indexers

parent 80183022
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 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
import logging
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
import logging
......
"""Custom character token indexer."""
"""
Custom character token indexer.
Adapted from COMBO.
Author: Mateusz Klimaszewski
"""
import itertools
from typing import List, Dict
......
"""Features indexer."""
"""Features indexer.
Adapted from COMBO.
Author: Mateusz Klimaszewski
"""
import collections
from abc import ABC
from typing import List, Dict
......
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