Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davidsbatista/NER-datasets
/ functions
Functions
35 in github.com/davidsbatista/NER-datasets
⨍
Functions
35
◇
Types & classes
0
↓ 4 callers
Function
calc_results
Args: gold_entities (List[Entity]): the gold standard entity annotations guess_entities (List[Entity]): a system's entity guesses
WNUT17/wnuteval.py:457
↓ 4 callers
Function
get_phrases
Args: entities (Iterable[Entity]): Returns: Set[Tuple[str]]
WNUT17/wnuteval.py:167
↓ 3 callers
Function
get_correct
Args: gold (Iterable[T]): guess (Iterable[T]): Returns: Set[T]
WNUT17/wnuteval.py:357
↓ 3 callers
Function
get_phrases_and_tags
Args: entities (Iterable[Entity]): Returns: Set[Tuple[Tuple[str],str]]:
WNUT17/wnuteval.py:178
↓ 3 callers
Function
make_entity
(tok)
WNUT17/wnuteval.py:200
↓ 2 callers
Function
doc_to_tokses
Args: lines (Iterable[str]): the lines in a document Returns: Dictionary[str,List[List[Tokens]]]: a nested list of list of t
WNUT17/wnuteval.py:261
↓ 2 callers
Function
filter_entities
Args: entities (Iterable[Entity]): the entities in a sentence p (Call[[Entity],bool): the predicate Returns: List(En
WNUT17/wnuteval.py:238
↓ 2 callers
Function
flatten
Args: nested (Iterable[Iterable[T]]): a nested iterator Returns: List[T]: the iterator flattened into a list
WNUT17/wnuteval.py:278
↓ 2 callers
Function
fmt_results
Args: tokens (Dict[str,List[Tokens]): a dictionary of gold and guess tokens all_entities (Dict[str,List[Entity]): a dictionary of
WNUT17/wnuteval.py:496
↓ 2 callers
Function
get_tn
Args: tp (Set[T]): fp (Set[T]): fn (Set[T]): _all (Iterable[T]): Returns: Set[T]
WNUT17/wnuteval.py:405
↓ 1 callers
Function
doc_to_entities
Args: lines (Iterator[str]): the lines in a document Returns: Dictionary[str,List[Entities]]: a lists of all entities in the
WNUT17/wnuteval.py:318
↓ 1 callers
Function
doc_to_entitieses
Args: lines (Iterator[str]): the lines in a document Returns: Dictionary[str,List[List[Entity]]]: a nested list of lists of
WNUT17/wnuteval.py:302
↓ 1 callers
Function
doc_to_toks
Args: lines (Iterator[str]): the lines in a document Returns: Dictionary[str,List[Tokens]]: a lists of all tokens in the doc
WNUT17/wnuteval.py:289
↓ 1 callers
Function
drop_other_entities
Args: entities (Iterable[Entity]): Returns: Iterator[Entity]
WNUT17/wnuteval.py:250
↓ 1 callers
Function
entity_to_tokens
Args: entity (Entity): Returns: List[Token]:
WNUT17/wnuteval.py:136
↓ 1 callers
Function
extend_entity
(entity, tok)
WNUT17/wnuteval.py:203
↓ 1 callers
Function
get_bio
(_i)
WNUT17/wnuteval.py:144
↓ 1 callers
Function
get_fn
Args: gold (Iterable[T]): guess (Iterable[T]): Returns: Set[T]
WNUT17/wnuteval.py:381
↓ 1 callers
Function
get_fp
Args: gold (Iterable[T]): guess (Iterable[T]): Returns: Set[T]
WNUT17/wnuteval.py:393
↓ 1 callers
Function
get_sents
Args: lines (Iterable[str]): the lines Yields: List[str]: the lines delimited by an empty line
WNUT17/wnuteval.py:33
↓ 1 callers
Function
get_tagged_entities
Args: entities (Dict[str,List[Entity]]): Returns: Dict[str,List[Entity]]
WNUT17/wnuteval.py:345
↓ 1 callers
Function
get_tags
Args: entities (Iterable[Entity]): the entities in a sentence Returns: Set[str]: a set of their tags, excluding 'O'
WNUT17/wnuteval.py:331
↓ 1 callers
Function
get_tp
Args: gold (Iterable[T]): guess (Iterable[T]): Returns: Set[T]
WNUT17/wnuteval.py:369
↓ 1 callers
Function
line_to_toks
Args: line (str): the input line sent_id (int): the current sentence ID word_id (int): the current word ID Returns:
WNUT17/wnuteval.py:91
↓ 1 callers
Function
main
()
WNUT17/wnuteval.py:538
↓ 1 callers
Function
make_lbl
(i)
WNUT17/wnuteval.py:104
↓ 1 callers
Function
make_tok
Args: word (str): the surface form of the word bio_tag (str): the tag with BIO annotation sent_id (int): the sentence ID
WNUT17/wnuteval.py:57
↓ 1 callers
Function
sent_to_toks
Args: sent (Iterator[str]): the lines that comprise a sentence sent_id (int): the sentence ID Returns: Dictionary[st
WNUT17/wnuteval.py:116
↓ 1 callers
Function
token_to_conll
Args: tok (Token): Returns: str:
WNUT17/wnuteval.py:80
↓ 1 callers
Function
toks_to_entities
Args: toks (Iterable[Token]): the tokens in a sentence Returns: Iterable[Entity]: the corresponding entities in a sentence
WNUT17/wnuteval.py:189
Function
entity_to_conll
Args: entity (Entity): Returns: List[str]: a conll-formatted token tag
WNUT17/wnuteval.py:156
Function
get_tp_fp_fn_tn
Args: gold (Iterator[T]): guess (Iterator[T]): _all (Iterator[T]): Returns: Tuple[Set[str],Set[str],Set[st
WNUT17/wnuteval.py:419
Function
get_tp_fp_fn_tn_phrases
Args: gold: List[Entity] guess: List[Entity] _all: List[Entity] Returns: Tuple[Set[str],Set[str],Set[str],Se
WNUT17/wnuteval.py:436
Function
non_other
Args: entity (Entity): Returns: bool
WNUT17/wnuteval.py:226
Function
reducer
(_entities, tok)
WNUT17/wnuteval.py:206