Closed kallewesterling closed 1 year ago
Add docstrings + typing to 134 functions/methods/constants:
RANDOM_SEED
Linker
Linker.__init__
Linker.__str__
Linker.load_resources
Linker.run
Linker.most_popular
Linker.by_distance
Linker.train_load_model
Pipeline
Pipeline.__init__
Pipeline.run_sentence
Pipeline.run_text
Ranker
Ranker.__init__
Ranker.__str__
Ranker.load_resources
Ranker.train
Ranker.perfect_match
Ranker.damlev_dist
Ranker.check_if_contained
Ranker.partial_match
Ranker.deezy_on_the_fly
Ranker.run
Ranker.find_candidates
Recogniser
Recogniser.__init__
Recogniser.__str__
Recogniser.train
Recogniser.create_pipeline
Recogniser.ner_predict
obtain_matches
create_training_set
train_deezy_model
generate_candidates
download_lwm_data
download_hipe_data
training_tokenize_and_align_labels
collect_named_entities
aggregate_mentions
fix_capitalization
fix_hyphens
fix_nested
fix_startEntity
aggregate_entities
turn_wikipedia2wikidata
reconstruct_sentences
process_lwm_for_ner
process_lwm_for_linking
aggregate_hipe_entities
process_hipe_for_linking
process_tsv
fine_to_coarse
eval_with_exception
prepare_sents
align_gold
postprocess_predictions
ner_and_process
update_with_linking
update_with_skyline
prepare_storing_links
load_processed_data
store_processed_data
create_mentions_df
store_for_scorer
store_results
make_wikilinks_consistent
make_wikipedia2wikidata_consisent
title_to_id
EntityDisambiguation
EntityDisambiguation.__init__
EntityDisambiguation.__get_config
EntityDisambiguation.__load_embeddings
EntityDisambiguation.train
EntityDisambiguation.__create_dataset_LR
EntityDisambiguation.train_LR
EntityDisambiguation.predict
EntityDisambiguation.normalize_scores
EntityDisambiguation.__compute_cross_cand_confidence
EntityDisambiguation.__compute_confidence
EntityDisambiguation.__predict
EntityDisambiguation.prerank
EntityDisambiguation.__update_embeddings
EntityDisambiguation.__embed_words
EntityDisambiguation.get_data_items
EntityDisambiguation.__eval
EntityDisambiguation.__save
EntityDisambiguation.__load
PreRank
PreRank.__init__
PreRank.forward
MulRelRanker
MulRelRanker.__init__
MulRelRanker.__local_ent_scores
MulRelRanker.forward
MulRelRanker.regularize
MulRelRanker.loss
flatten_list_of_lists
make_equal_len
is_important_word
STOPWORDS
LOWER
DIGIT_0
UNK_TOKEN
BRACKETS
Vocabulary
Vocabulary.__init__
Vocabulary.normalize
Vocabulary.add_to_vocab
Vocabulary.size
Vocabulary.get_id
rel_end_to_end
get_rel_from_api
match_wikipedia_to_wikidata
match_ent
postprocess_rel
store_rel
run_rel_experiments
get_db_emb
prepare_initial_data
rank_candidates
add_publication
prepare_rel_trainset
Experiment
Experiment.__init__
Experiment__str__
Experiment.load_data
Experiment.prepare_data
Experiment.linking_experiments
Closing #210.
Add docstrings + typing to 134 functions/methods/constants:
RANDOM_SEED
,Linker
,Linker.__init__
,Linker.__str__
,Linker.load_resources
,Linker.run
,Linker.most_popular
,Linker.by_distance
,Linker.train_load_model
)Pipeline
,Pipeline.__init__
,Pipeline.run_sentence
,Pipeline.run_text
)Ranker
,Ranker.__init__
,Ranker.__str__
,Ranker.load_resources
,Ranker.train
,Ranker.perfect_match
,Ranker.damlev_dist
,Ranker.check_if_contained
,Ranker.partial_match
,Ranker.deezy_on_the_fly
,Ranker.run
,Ranker.find_candidates
)Recogniser
,Recogniser.__init__
,Recogniser.__str__
,Recogniser.train
,Recogniser.create_pipeline
,Recogniser.ner_predict
)obtain_matches
,create_training_set
,train_deezy_model
,generate_candidates
)create_training_set
creates circular import if typing is addeddownload_lwm_data
,download_hipe_data
)training_tokenize_and_align_labels
,collect_named_entities
,aggregate_mentions
,fix_capitalization
,fix_hyphens
,fix_nested
,fix_startEntity
,aggregate_entities
)turn_wikipedia2wikidata
,reconstruct_sentences
,process_lwm_for_ner
,process_lwm_for_linking
,aggregate_hipe_entities
,process_hipe_for_linking
,process_tsv
,fine_to_coarse
)eval_with_exception
,prepare_sents
,align_gold
,postprocess_predictions
,ner_and_process
,update_with_linking
,update_with_skyline
,prepare_storing_links
,load_processed_data
,store_processed_data
,create_mentions_df
,store_for_scorer
,store_results
)make_wikilinks_consistent
,make_wikipedia2wikidata_consisent
,title_to_id
)RANDOM_SEED
,EntityDisambiguation
,EntityDisambiguation.__init__
,EntityDisambiguation.__get_config
,EntityDisambiguation.__load_embeddings
,EntityDisambiguation.train
,EntityDisambiguation.__create_dataset_LR
,EntityDisambiguation.train_LR
,EntityDisambiguation.predict
,EntityDisambiguation.normalize_scores
,EntityDisambiguation.__compute_cross_cand_confidence
,EntityDisambiguation.__compute_confidence
,EntityDisambiguation.__predict
,EntityDisambiguation.prerank
,EntityDisambiguation.__update_embeddings
,EntityDisambiguation.__embed_words
,EntityDisambiguation.get_data_items
,EntityDisambiguation.__eval
,EntityDisambiguation.__save
,EntityDisambiguation.__load
)PreRank
,PreRank.__init__
,PreRank.forward
,MulRelRanker
,MulRelRanker.__init__
,MulRelRanker.__local_ent_scores
,MulRelRanker.forward
,MulRelRanker.regularize
,MulRelRanker.loss
)flatten_list_of_lists
,make_equal_len
,is_important_word
,STOPWORDS
)LOWER
,DIGIT_0
,UNK_TOKEN
,BRACKETS
,Vocabulary
,Vocabulary.__init__
,Vocabulary.normalize
,Vocabulary.add_to_vocab
,Vocabulary.size
,Vocabulary.get_id
)rel_end_to_end
,get_rel_from_api
,match_wikipedia_to_wikidata
,match_ent
,postprocess_rel
,store_rel
,run_rel_experiments
)RANDOM_SEED
,get_db_emb
,eval_with_exception
,prepare_initial_data
,rank_candidates
,add_publication
,prepare_rel_trainset
)Experiment
,Experiment.__init__
,Experiment__str__
,Experiment.load_data
,Experiment.prepare_data
,Experiment.linking_experiments
)RANDOM_SEED
)Closing #210.