Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/complementizer/wcep-mds-dataset
/ functions
Functions
97 in github.com/complementizer/wcep-mds-dataset
⨍
Functions
97
◇
Types & classes
13
↓ 7 callers
Method
_preprocess
(self, articles)
experiments/summarizer.py:42
↓ 7 callers
Method
_sent_len
(self, sent, len_type)
experiments/summarizer.py:18
↓ 5 callers
Method
_deduplicate
(self, sents)
experiments/summarizer.py:9
↓ 3 callers
Function
compute_rouge_n
(hyp, ref, rouge_n=1, tokenize=True)
experiments/oracles.py:8
↓ 2 callers
Method
_is_redundant
(self, sents, selected, new, max_redundancy)
experiments/summarizer.py:28
↓ 2 callers
Function
extract_date
(date_div)
dataset_generation/step2_process_wcep_html.py:64
↓ 2 callers
Function
process_batch
(items, out_path, jobs)
dataset_reproduction/extract_cc_articles.py:91
↓ 2 callers
Function
recursively_extract_bullets
(e, date, category,
dataset_generation/step2_process_wcep_html.py:76
↓ 1 callers
Method
_compute_page_rank
(self, S)
experiments/baselines.py:97
↓ 1 callers
Function
add_cc_articles_to_clusters
(clusters, cc_path, id_to_cluster_idx, tmp_clusters_path)
dataset_reproduction/combine_and_split.py:29
↓ 1 callers
Function
add_wcep_articles_to_clusters
(wcep_path, url_to_cluster_idxs, clusters)
dataset_reproduction/combine_and_split.py:20
↓ 1 callers
Function
batches
(iterable, n=1)
dataset_reproduction/extract_wcep_articles.py:46
↓ 1 callers
Function
batches
(iterable, n=1)
dataset_generation/step4_scrape_sources.py:50
↓ 1 callers
Function
cleanup_clusters
(path, tmp_path)
dataset_reproduction/combine_and_split.py:69
↓ 1 callers
Method
cluster_sentences
(self, X)
experiments/baselines.py:216
↓ 1 callers
Method
compute_summary_coverage
(self, alpha, summary_indices,
experiments/baselines.py:229
↓ 1 callers
Method
compute_summary_diversity
(self, summary_indices, ix_to_label,
experiments/baselines.py:241
↓ 1 callers
Function
download_cc_file
(cc_path, local_cc_path)
dataset_reproduction/extract_cc_articles.py:32
↓ 1 callers
Function
evaluate
(ref_summaries, pred_summaries, lowercase=False)
experiments/evaluate.py:19
↓ 1 callers
Function
extract_month_urls
()
dataset_generation/step1_store_wcep_html.py:9
↓ 1 callers
Method
fix_glued_sents
(self, text)
experiments/sent_splitter.py:14
↓ 1 callers
Method
fix_line_broken_sents
(self, sents)
experiments/sent_splitter.py:17
↓ 1 callers
Function
get_article_to_cluster_mappings
(clusters)
dataset_reproduction/combine_and_split.py:9
↓ 1 callers
Function
get_record_id
(record)
dataset_reproduction/extract_cc_articles.py:22
↓ 1 callers
Function
get_record_url
(record)
dataset_reproduction/extract_cc_articles.py:28
↓ 1 callers
Function
load_urls
(path)
dataset_generation/step4_scrape_sources.py:56
↓ 1 callers
Function
load_urls
(path)
dataset_generation/step5_combine_dataset.py:5
↓ 1 callers
Function
main
(args)
experiments/oracles.py:203
↓ 1 callers
Function
main
(args)
experiments/evaluate.py:97
↓ 1 callers
Function
main
(args)
dataset_reproduction/combine_and_split.py:100
↓ 1 callers
Function
main
(args)
dataset_reproduction/extract_wcep_articles.py:63
↓ 1 callers
Function
main
(args)
dataset_reproduction/extract_cc_articles.py:137
↓ 1 callers
Function
main
(args)
dataset_generation/step1_store_wcep_html.py:19
↓ 1 callers
Function
main
(args)
dataset_generation/step4_scrape_sources.py:66
↓ 1 callers
Function
main
(args)
dataset_generation/step2_process_wcep_html.py:168
↓ 1 callers
Function
main
(args)
dataset_generation/step5_combine_dataset.py:18
↓ 1 callers
Function
main
(args)
dataset_generation/step3_snapshot_source_urls.py:37
↓ 1 callers
Function
make_month_to_int
()
dataset_generation/step2_process_wcep_html.py:12
↓ 1 callers
Function
mute_other_loggers
()
dataset_reproduction/extract_cc_articles.py:130
↓ 1 callers
Method
optimize
(self, sents, max_len, len_type, ix_to_lab
experiments/baselines.py:257
↓ 1 callers
Function
parse_logged_cc_file
(line)
dataset_reproduction/extract_cc_articles.py:114
↓ 1 callers
Function
parse_logged_record_ids
(line)
dataset_reproduction/extract_cc_articles.py:108
↓ 1 callers
Function
print_mean
(results, rouge_types)
experiments/evaluate.py:8
↓ 1 callers
Function
process_month_page_2004_to_2017
(html)
dataset_generation/step2_process_wcep_html.py:128
↓ 1 callers
Function
process_month_page_from_2018
(html)
dataset_generation/step2_process_wcep_html.py:143
↓ 1 callers
Function
read_article_ids
(path, max_cluster_size)
dataset_reproduction/extract_cc_articles.py:49
↓ 1 callers
Function
read_input
(path)
dataset_reproduction/extract_wcep_articles.py:52
↓ 1 callers
Function
read_jsonl
(path)
dataset_generation/step3_snapshot_source_urls.py:10
↓ 1 callers
Function
read_jsonl_gen
(path)
experiments/utils.py:25
↓ 1 callers
Function
read_log
(path)
dataset_reproduction/extract_cc_articles.py:118
↓ 1 callers
Function
read_warc_gz
(path)
dataset_reproduction/extract_cc_articles.py:14
↓ 1 callers
Function
split_dataset
(outdir, tmp_clusters_path)
dataset_reproduction/combine_and_split.py:60
↓ 1 callers
Method
split_sents
(self, text)
experiments/sent_splitter.py:23
↓ 1 callers
Method
summarize
(self, ref, articles, max_len=40, len_
experiments/oracles.py:56
↓ 1 callers
Method
to_json_dict
(self)
dataset_generation/step2_process_wcep_html.py:44
↓ 1 callers
Function
wiki_link_to_id
(s)
dataset_generation/step2_process_wcep_html.py:72
↓ 1 callers
Function
write_articles
(articles, path)
dataset_generation/step4_scrape_sources.py:44
Method
__init__
(self, title, sents)
experiments/data.py:7
Method
__init__
(self, text, words, position, is_title=False)
experiments/data.py:19
Method
__init__
(self, rouge_n=1, metric='f', early_stopping=True)
experiments/oracles.py:50
Method
__init__
(self, rouge_n=1, metric='f', early_stopping=True)
experiments/oracles.py:123
Method
__init__
(self, rouge_n=1, metric='f')
experiments/oracles.py:157
Method
__init__
(self, max_redundancy=0.5)
experiments/baselines.py:94
Method
__init__
(self, max_redundancy=0.5)
experiments/baselines.py:152
Method
__init__
(self, a=5, div_weight=6, cluster_factor=0.2)
experiments/baselines.py:211
Method
__init__
(self, text, id, date, category=None, stories=None, wiki_links=None, references=None)
dataset_generation/step2_process_wcep_html.py:28
Method
__len__
(self)
experiments/data.py:26
Method
_preprocess_sents
(self, raw_sents)
experiments/summarizer.py:67
Function
args_to_summarize_settings
(args)
experiments/utils.py:77
Function
dump_pkl
(obj, path)
experiments/utils.py:72
Function
evaluate_from_path
(dataset_path, pred_path, start, stop, lowercase=False)
experiments/evaluate.py:54
Function
extract_article
(todo_article)
dataset_reproduction/extract_wcep_articles.py:12
Function
extract_article
(item)
dataset_reproduction/extract_cc_articles.py:63
Function
file_to_date
(path)
dataset_generation/step2_process_wcep_html.py:159
Function
load_pkl
(path)
experiments/utils.py:66
Function
read_json
(path)
experiments/utils.py:12
Function
read_jsonl
(path, load=False, start=0, stop=None)
experiments/utils.py:23
Function
read_jsonl
(path)
dataset_reproduction/utils.py:10
Function
read_jsonl_gz
(path)
experiments/utils.py:39
Function
read_lines
(path)
experiments/utils.py:6
Function
read_lines
(path)
dataset_reproduction/utils.py:4
Function
scrape_article
(url)
dataset_generation/step4_scrape_sources.py:13
Method
summarize
(self, articles, max_len=40, len_type='words',
experiments/summarizer.py:78
Method
summarize
(self, ref, articles, max_len=40, len_
experiments/oracles.py:128
Method
summarize
(self, ref, articles, max_len=40, len_
experiments/oracles.py:162
Method
summarize
(self, articles, max_len=40, len_type='words',
experiments/baselines.py:19
Method
summarize
(self, articles, max_len=40, len_type='words',
experiments/baselines.py:57
Method
summarize
(self, articles, max_len=40, len_type='words',
experiments/baselines.py:104
Method
summarize
(self, articles, max_len=40, len_type='words',
experiments/baselines.py:155
Method
summarize
(self, articles, max_len=40, len_type='words',
experiments/baselines.py:311
Method
unglue
(self, x)
experiments/sent_splitter.py:9
Function
url_to_time
(url, month_to_num)
dataset_generation/step2_process_wcep_html.py:56
Method
words
(self)
experiments/data.py:11
Function
write_json
(object, path)
experiments/utils.py:18
Function
write_jsonl
(items, path, batch_size=100, override=True)
experiments/utils.py:45
Function
write_jsonl
(items, path, mode='a')
dataset_reproduction/utils.py:16
Function
write_jsonl
(items, path, batch_size=100, override=True)
dataset_generation/step3_snapshot_source_urls.py:16