MCPcopy Create free account

hub / github.com/davidsbatista/NER-datasets / functions

Functions35 in github.com/davidsbatista/NER-datasets

↓ 4 callersFunctioncalc_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 callersFunctionget_phrases
Args: entities (Iterable[Entity]): Returns: Set[Tuple[str]]
WNUT17/wnuteval.py:167
↓ 3 callersFunctionget_correct
Args: gold (Iterable[T]): guess (Iterable[T]): Returns: Set[T]
WNUT17/wnuteval.py:357
↓ 3 callersFunctionget_phrases_and_tags
Args: entities (Iterable[Entity]): Returns: Set[Tuple[Tuple[str],str]]:
WNUT17/wnuteval.py:178
↓ 3 callersFunctionmake_entity
(tok)
WNUT17/wnuteval.py:200
↓ 2 callersFunctiondoc_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 callersFunctionfilter_entities
Args: entities (Iterable[Entity]): the entities in a sentence p (Call[[Entity],bool): the predicate Returns: List(En
WNUT17/wnuteval.py:238
↓ 2 callersFunctionflatten
Args: nested (Iterable[Iterable[T]]): a nested iterator Returns: List[T]: the iterator flattened into a list
WNUT17/wnuteval.py:278
↓ 2 callersFunctionfmt_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 callersFunctionget_tn
Args: tp (Set[T]): fp (Set[T]): fn (Set[T]): _all (Iterable[T]): Returns: Set[T]
WNUT17/wnuteval.py:405
↓ 1 callersFunctiondoc_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 callersFunctiondoc_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 callersFunctiondoc_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 callersFunctiondrop_other_entities
Args: entities (Iterable[Entity]): Returns: Iterator[Entity]
WNUT17/wnuteval.py:250
↓ 1 callersFunctionentity_to_tokens
Args: entity (Entity): Returns: List[Token]:
WNUT17/wnuteval.py:136
↓ 1 callersFunctionextend_entity
(entity, tok)
WNUT17/wnuteval.py:203
↓ 1 callersFunctionget_bio
(_i)
WNUT17/wnuteval.py:144
↓ 1 callersFunctionget_fn
Args: gold (Iterable[T]): guess (Iterable[T]): Returns: Set[T]
WNUT17/wnuteval.py:381
↓ 1 callersFunctionget_fp
Args: gold (Iterable[T]): guess (Iterable[T]): Returns: Set[T]
WNUT17/wnuteval.py:393
↓ 1 callersFunctionget_sents
Args: lines (Iterable[str]): the lines Yields: List[str]: the lines delimited by an empty line
WNUT17/wnuteval.py:33
↓ 1 callersFunctionget_tagged_entities
Args: entities (Dict[str,List[Entity]]): Returns: Dict[str,List[Entity]]
WNUT17/wnuteval.py:345
↓ 1 callersFunctionget_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 callersFunctionget_tp
Args: gold (Iterable[T]): guess (Iterable[T]): Returns: Set[T]
WNUT17/wnuteval.py:369
↓ 1 callersFunctionline_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 callersFunctionmain
()
WNUT17/wnuteval.py:538
↓ 1 callersFunctionmake_lbl
(i)
WNUT17/wnuteval.py:104
↓ 1 callersFunctionmake_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 callersFunctionsent_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 callersFunctiontoken_to_conll
Args: tok (Token): Returns: str:
WNUT17/wnuteval.py:80
↓ 1 callersFunctiontoks_to_entities
Args: toks (Iterable[Token]): the tokens in a sentence Returns: Iterable[Entity]: the corresponding entities in a sentence
WNUT17/wnuteval.py:189
Functionentity_to_conll
Args: entity (Entity): Returns: List[str]: a conll-formatted token tag
WNUT17/wnuteval.py:156
Functionget_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
Functionget_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
Functionnon_other
Args: entity (Entity): Returns: bool
WNUT17/wnuteval.py:226
Functionreducer
(_entities, tok)
WNUT17/wnuteval.py:206