# Sequence classification VS MaskedLM

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsequence-classification-vs-maskedlm%2F1410%3E%5C
**Category:** Beginners\
**Created:** [October 7, 2020, 7:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsequence-classification-vs-maskedlm%2F1410 "2020-10-07T19:09:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shainaraza](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/shainaraza/32/2854_2.png) [@shainaraza](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fshainaraza)%5C
**Post date:** [October 7, 2020, 7:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsequence-classification-vs-maskedlm%2F1410%2F1 "2020-10-07T19:09:04Z")

</div>

Hi  
I am new to the usage of huggingface, before that I used BERT but using original code and just used sequence classification for sentiment analysis, now I am puzzled that Which task is more suitable for the purpose of detection tasks e.g., fake news  
(i) MaskedLM  
(ii) Sequence classification

thanks

---

<div class="post-metadata">

**Author:** ![valhalla](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/valhalla/32/4179_2.png) [@valhalla](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fvalhalla)%5C
**Post date:** [October 8, 2020, 10:39am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsequence-classification-vs-maskedlm%2F1410%2F2 "2020-10-08T10:39:23Z")

</div>

Hi @shainaraza

Fake news detection is classification, so Sequence classification is suitable.

masked language modelling (MLM) is used for pre-training and is not meant to be used for direct downstream tasks. For downstream tasks we take pre-trained model and add a task specific head on top of it.

These two docs should help

1. [Summary of the models](https://huggingface.co/transformers/model_summary.html)
2. [Summary of the tasks](https://huggingface.co/transformers/task_summary.html)
