{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/covid-twitter-bert-a-natural-language","title":"COVID-Twitter-BERT: A Natural Language Processing Model to Analyse COVID-19 Content on Twitter","arxiv_id":"2005.07503","date":"2020-05-15","proceeding":null,"authors":["Martin Müller","Marcel Salathé","Per E Kummervold"],"abstract":"In this work, we release COVID-Twitter-BERT (CT-BERT), a transformer-based model, pretrained on a large corpus of Twitter messages on the topic of COVID-19. Our model shows a 10-30% marginal improvement compared to its base model, BERT-Large, on five different classification datasets. The largest improvements are on the target domain. Pretrained transformer models, such as CT-BERT, are trained on a specific target domain and can be used for a wide variety of natural language processing tasks, including classification, question-answering and chatbots. CT-BERT is optimised to be used on COVID-19 content, in particular social media posts from Twitter.","url_abs":"https://arxiv.org/abs/2005.07503v1","url_pdf":"https://arxiv.org/pdf/2005.07503v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"covid-twitter-bert-a-natural-language","repo_url":"https://github.com/digitalepidemiologylab/covid-twitter-bert","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"classification-1","task_name":"Classification"},{"task_slug":"classification","task_name":"General Classification"},{"task_slug":"question-answering","task_name":"Question Answering"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2005.07503","atlas_url":"https://app.syntology.ai/?focus=2005.07503","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2005.07503"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/digitalepidemiologylab/covid-twitter-bert","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":9},"by_repo_kind":{"official":{"samples":9,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"07f5f6ae24787306","entry":"configure_optimizer","repo":"digitalepidemiologylab/covid-twitter-bert","repo_kind":"official","path":"run_finetune.py","file_url":"https://github.com/digitalepidemiologylab/covid-twitter-bert/blob/HEAD/run_finetune.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"07f5f6ae24787306"}},{"code_sha256_prefix":"8f68df3de2a27988","entry":"create_example","repo":"digitalepidemiologylab/covid-twitter-bert","repo_kind":"official","path":"preprocess/create_predict_data.py","file_url":"https://github.com/digitalepidemiologylab/covid-twitter-bert/blob/HEAD/preprocess/create_predict_data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8f68df3de2a27988"}},{"code_sha256_prefix":"eca754708092452c","entry":"get_input_meta_data","repo":"digitalepidemiologylab/covid-twitter-bert","repo_kind":"official","path":"run_finetune.py","file_url":"https://github.com/digitalepidemiologylab/covid-twitter-bert/blob/HEAD/run_finetune.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"eca754708092452c"}},{"code_sha256_prefix":"ae3d0ae784a6cf90","entry":"get_run_name","repo":"digitalepidemiologylab/covid-twitter-bert","repo_kind":"official","path":"preprocess/create_finetune_data.py","file_url":"https://github.com/digitalepidemiologylab/covid-twitter-bert/blob/HEAD/preprocess/create_finetune_data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ae3d0ae784a6cf90"}},{"code_sha256_prefix":"7d766a22bba3decf","entry":"load_tf2_weights_in_bert","repo":"digitalepidemiologylab/covid-twitter-bert","repo_kind":"official","path":"convert_tf2_to_pytorch/convert_tf2_to_pytorch.py","file_url":"https://github.com/digitalepidemiologylab/covid-twitter-bert/blob/HEAD/convert_tf2_to_pytorch/convert_tf2_to_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7d766a22bba3decf"}},{"code_sha256_prefix":"5b614f10d3d68359","entry":"load_tf2_weights_in_bert","repo":"digitalepidemiologylab/covid-twitter-bert","repo_kind":"official","path":"convert_tf2_to_pytorch/convert_tf2_to_pytorch_classifier.py","file_url":"https://github.com/digitalepidemiologylab/covid-twitter-bert/blob/HEAD/convert_tf2_to_pytorch/convert_tf2_to_pytorch_classifier.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5b614f10d3d68359"}},{"code_sha256_prefix":"2d712ee70005b181","entry":"load_tf2_weights_in_bert","repo":"digitalepidemiologylab/covid-twitter-bert","repo_kind":"official","path":"convert_tf2_to_pytorch/convert_tf2_to_pytorch_pretrain.py","file_url":"https://github.com/digitalepidemiologylab/covid-twitter-bert/blob/HEAD/convert_tf2_to_pytorch/convert_tf2_to_pytorch_pretrain.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2d712ee70005b181"}},{"code_sha256_prefix":"3194daec65dc5d7e","entry":"read_data","repo":"digitalepidemiologylab/covid-twitter-bert","repo_kind":"official","path":"preprocess/create_finetune_data.py","file_url":"https://github.com/digitalepidemiologylab/covid-twitter-bert/blob/HEAD/preprocess/create_finetune_data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3194daec65dc5d7e"}},{"code_sha256_prefix":"c509d695494f63fb","entry":"steps_to_run","repo":"digitalepidemiologylab/covid-twitter-bert","repo_kind":"official","path":"utils/model_training_utils.py","file_url":"https://github.com/digitalepidemiologylab/covid-twitter-bert/blob/HEAD/utils/model_training_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c509d695494f63fb"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}