---
title: "One-step and Two-step Classification for Abusive — Park 2017"
description: "Park and Fung address automatic detection of sexist and racist tweets."
authors: ["Ji Ho Park", "Pascale Fung"]
year: 2017
venue: "Proceedings of the First Workshop on Abusive Language Online"
source: "https://aclanthology.org/W17-3006/"
doi: "10.18653/v1/w17-3006"
licence: "CC BY 4.0 (ACL Anthology)"
licence_url: "https://creativecommons.org/licenses/by/4.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/park-2017-one-step-two-step-classification/"
---
[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/park-2017-one-step-two-step-classification/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2017](https://md.research.elamur.ai/free/en/papers/2017/page/3/) / One-step and Two-step Classification for Abusive Language Detection on Twitter

# One-step and Two-step Classification for Abusive Language Detection on Twitter

**Authors:** [Ji Ho Park](https://md.research.elamur.ai/free/en/authors/ji-ho-park/), [Pascale Fung](https://md.research.elamur.ai/free/en/authors/pascale-fung/) · **Year:** 2017 · **Venue:** Proceedings of the First Workshop on Abusive Language Online · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

**Links:** [Publisher's page](https://aclanthology.org/W17-3006/) · [PDF](https://aclanthology.org/W17-3006.pdf) · [DOI 10.18653/v1/w17-3006](https://doi.org/10.18653/v1/w17-3006) · [OpenAlex](https://openalex.org/W2622349515)

**Citations:** 353 citations (openalex-snapshot · 2026-10-14) · [80](#cited-by) in our library, of the 140884 papers whose bibliographies we read

## Summary
Park and Fung address automatic detection of sexist and racist tweets. They compare two strategies. The one-step strategy is a single three-way classifier (none / sexism / racism). The two-step strategy first flags a tweet as abusive or not, then assigns an abusive tweet to sexism or racism. They merged the two expert-annotated English Twitter corpora by Waseem and Hovy (2016) and Waseem (2016), released for ALW1, into roughly 18k labelled tweets. They tested three CNN variants: CharCNN on characters, WordCNN on static word2vec embeddings, and a new HybridCNN that reads both. Baselines were character n-gram logistic regression, SVM and FastText.

The best one-step system was HybridCNN, with a weighted F1 of 0.827. Chaining two logistic regression classifiers reached a nearly equal 0.824. The second step (sexism vs. racism) proved easy for every model, at about 0.95 F1. This suggests the hard part is spotting abuse in the first place. The two-step design therefore lets cheap models compete with neural ones and makes it possible to mix classifier types.

## Key points
- **Data:** the merged corpus has 12,427 "none", 2,059 racism and 3,864 sexism tweets. For the first step, racism and sexism were pooled into 5,923 "abusive" tweets.
- **HybridCNN design:** a character channel with filters of width 3, 4 and 5 and a word channel with widths 1, 2 and 3. Each uses 50 feature maps, and the outputs are 1-max-pooled, concatenated and fed to softmax.
- **WordCNN:** follows Kim's CNN-static setup with frozen 300-d Google News word2vec. Hashtags such as #womenagainstfeminism are split into words using the wordsegment library.
- **CharCNN:** the deep Zhang et al. (2015) architecture was cut down to 2 convolution layers because the dataset is small. It scored below WordCNN.
- **Evaluation:** 10-fold cross-validation with label-weighted precision, recall and F1. On the binary abusive-detection step, HybridCNN led with F1 0.734, ahead of WordCNN (0.726) and LR (0.711).

## Interesting ideas
- **Split coarse detection from fine-grained typing.** If the subtype distinction is easy, all the difficulty sits in the binary step. A large dataset labelled only abusive/not could train step one, and a small finely labelled set could train step two. This fits low-resource settings, such as Ukrainian moderation data.
- **Mix models per stage.** Each step can use whichever classifier works best for it. For example, HybridCNN followed by LR beat HybridCNN used for both steps. Any cascaded pipeline can choose components stage by stage instead of using one model throughout.
- **Combine character and word channels.** Running both in parallel within one CNN helps with misspellings and invented words like #feminazi. This is relevant for noisy social-media text and morphologically rich languages.
- **Segment hashtags before embedding lookup.** Splitting hashtags into ordinary words is a cheap way to recover out-of-vocabulary tokens when using pretrained embeddings.
- **Use class-balanced mini-batches.** Sampling each batch with equal label proportions is a simple alternative to loss reweighting for skewed datasets.

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

Fields: [Natural language processing](https://md.research.elamur.ai/free/en/shelves/nlp/)

## Cited by

Cited by

80 papers of our library cite it (of the 140884 whose bibliographies we read); 6 of them have a page here, 74 not yet.

- [I Feel Offended, Don't Be Abusive! Implicit/Explicit Messages in Offensive and Abusive Language](https://md.research.elamur.ai/free/en/papers/caselli-2020-i-feel-offended-don-t/)
- [RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models](https://md.research.elamur.ai/free/en/papers/gehman-2020-realtoxicityprompts-evaluating-neural-toxic-degeneration/)
- [Sexism detection: The first corpus in Algerian dialect with a code-switching in Arabic/ French and English](https://md.research.elamur.ai/free/en/papers/guellil-2021-sexism-detection-first-corpus-algerian/)
- [Reducing Gender Bias in Abusive Language Detection](https://md.research.elamur.ai/free/en/papers/park-2018-reducing-gender-bias-abusive-language/)
- [Toxicity Detection: Does Context Really Matter?](https://md.research.elamur.ai/free/en/papers/pavlopoulos-2020-toxicity-detection-does-context-really/)
- [The Risk of Racial Bias in Hate Speech Detection](https://md.research.elamur.ai/free/en/papers/sap-2019-risk-racial-bias-hate-speech/)

## Cite

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{park2017one,
  title = {{One-step and Two-step Classification for Abusive Language Detection on Twitter}},
  author = {Park, Ji Ho and Fung, Pascale},
  booktitle = {Proceedings of the First Workshop on Abusive Language Online},
  year = {2017},
  doi = {10.18653/v1/w17-3006},
  url = {https://doi.org/10.18653/v1/w17-3006}
}
```

- [← previous On the Need of Cross Validation for Discourse Relation Classification](https://md.research.elamur.ai/free/en/papers/shi-2017-need-cross-validation-discourse-relation/)
- [next → Ontology-Aware Token Embeddings for Prepositional Phrase Attachment](https://md.research.elamur.ai/free/en/papers/onto-2017-dasigi-ontology-aware-token-embeddings-prepositional/)
- [↑ back to papers of 2017](https://md.research.elamur.ai/free/en/papers/2017/page/3/)

## References

14 references, 4 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. Badjatiya, P., Gupta, S., Gupta, M., & Varma, V. (2017). Deep learning for hate speech detection in tweets. Proceedings of the 26th International Conference on World Wide Web Companion, 759-760. [find](https://scholar.google.com/scholar?q=Badjatiya%2C+P%2E%2C+Gupta%2C+S%2E%2C+Gupta%2C+M%2E%2C+%26+Varma%2C+V%2E+%282017%29%2E+Deep+learning+for+hate+speech+detection+in+tweets%2E+Proceedings+of+the+26th+International+Conference+on+World+Wide+Web+Companion%2C+759%2D760%2E)
2. Schmidt, A., & Wiegand, M. (2017). A survey on hate speech detection using natural language processing. [find](https://scholar.google.com/scholar?q=Schmidt%2C+A%2E%2C+%26+Wiegand%2C+M%2E+%282017%29%2E+A+survey+on+hate+speech+detection+using+natural+language+processing%2E) [our card](https://md.research.elamur.ai/free/en/papers/schmidt-2017-survey-hate-speech-detection-natural/)
3. Djuric, N., Zhou, J., Morris, R., Grbovic, M., Radosavljevic, V., & Bhamidipati, N. (2015). Hate speech detection with comment embeddings. Proceedings of the 24th International Conference on World Wide Web, 29-30. [find](https://scholar.google.com/scholar?q=Djuric%2C+N%2E%2C+Zhou%2C+J%2E%2C+Morris%2C+R%2E%2C+Grbovic%2C+M%2E%2C+Radosavljevic%2C+V%2E%2C+%26+Bhamidipati%2C+N%2E+%282015%29%2E+Hate+speech+detection+with+comment+embeddings%2E+Proceedings+of+the+24th+International+Conference+on+World+Wid)
4. Segaran, T., & Hammerbacher, J. (2009). Beautiful data: The stories behind elegant data solutions " O'Reilly Media, Inc.". [find](https://scholar.google.com/scholar?q=Segaran%2C+T%2E%2C+%26+Hammerbacher%2C+J%2E+%282009%29%2E+Beautiful+data%3A+The+stories+behind+elegant+data+solutions+%22+O%27Reilly+Media%2C+Inc%2E%22%2E)
5. Wang, W., Chen, L., Thirunarayan, K., & Sheth, A. P. (2012). Harnessing twitter" big data" for automatic emotion identification. Privacy, Security, Risk and Trust (PASSAT), 2012 International Conference on and 2012 International Confernece on Social Computing (SocialCom), 587-592. [find](https://scholar.google.com/scholar?q=Wang%2C+W%2E%2C+Chen%2C+L%2E%2C+Thirunarayan%2C+K%2E%2C+%26+Sheth%2C+A%2E+P%2E+%282012%29%2E+Harnessing+twitter%22+big+data%22+for+automatic+emotion+identification%2E+Privacy%2C+Security%2C+Risk+and+Trust+%28PASSAT%29%2C+2012+International+Conferen)
6. Joulin, A., Grave, E., Bojanowski, P., & Mikolov, T. (2016). Bag of tricks for efficient text classification. Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, Kim, Y. (2014). Convolutional neural networks for sentenc… [find](https://scholar.google.com/scholar?q=Joulin%2C+A%2E%2C+Grave%2C+E%2E%2C+Bojanowski%2C+P%2E%2C+%26+Mikolov%2C+T%2E+%282016%29%2E+Bag+of+tricks+for+efficient+text+classification%2E+Proceedings+of+the+15th+Conference+of+the+European+Chapter+of+the+Association+for+Computat)
7. Kingma, D., & Ba, J. (2014). Adam: A method for stochastic optimization. Proceedings of the 3rd International Conference on Learning Representations (ICLR) [find](https://scholar.google.com/scholar?q=Kingma%2C+D%2E%2C+%26+Ba%2C+J%2E+%282014%29%2E+Adam%3A+A+method+for+stochastic+optimization%2E+Proceedings+of+the+3rd+International+Conference+on+Learning+Representations+%28ICLR%29)
8. Waseem, Z. (2016). Are you a racist or am I seeing things? annotator influence on hate speech detection on twitter. Proceedings of the 1st Workshop on Natural Language Processing and Computational Social Science, 138-142. [find](https://scholar.google.com/scholar?q=Waseem%2C+Z%2E+%282016%29%2E+Are+you+a+racist+or+am+I+seeing+things%3F+annotator+influence+on+hate+speech+detection+on+twitter%2E+Proceedings+of+the+1st+Workshop+on+Natural+Language+Processing+and+Computational+Soc) [our card](https://md.research.elamur.ai/free/en/papers/waseem-2016-are-you-racist-or-am/)
9. LeCun, Y., Kavukcuoglu, K., & Farabet, C. (2010). Convolutional networks and applications in vision. Circuits and Systems (ISCAS), Proceedings of 2010 IEEE International Symposium on, 253-256. [find](https://scholar.google.com/scholar?q=LeCun%2C+Y%2E%2C+Kavukcuoglu%2C+K%2E%2C+%26+Farabet%2C+C%2E+%282010%29%2E+Convolutional+networks+and+applications+in+vision%2E+Circuits+and+Systems+%28ISCAS%29%2C+Proceedings+of+2010+IEEE+International+Symposium+on%2C+253%2D256%2E)
10. Waseem, Z., & Hovy, D. (2016). Hateful symbols or hateful people? predictive features for hate speech detection on twitter. Proceedings of NAACL-HLT, 88-93. [find](https://scholar.google.com/scholar?q=Waseem%2C+Z%2E%2C+%26+Hovy%2C+D%2E+%282016%29%2E+Hateful+symbols+or+hateful+people%3F+predictive+features+for+hate+speech+detection+on+twitter%2E+Proceedings+of+NAACL%2DHLT%2C+88%2D93%2E) [our card](https://md.research.elamur.ai/free/en/papers/waseem-2016-hateful-symbols-or-hateful-people/)
11. Meyer, R. (2016, 07/21). Twitter's famous racist problem. [find](https://scholar.google.com/scholar?q=Meyer%2C+R%2E+%282016%2C+07%2F21%29%2E+Twitter%27s+famous+racist+problem%2E)
12. The Atlantic, Zhang, X., Zhao, J., & LeCun, Y. (2015). Character-level convolutional networks for text classification. Advances in Neural Information Processing Systems, 649-657. [find](https://scholar.google.com/scholar?q=The+Atlantic%2C+Zhang%2C+X%2E%2C+Zhao%2C+J%2E%2C+%26+LeCun%2C+Y%2E+%282015%29%2E+Character%2Dlevel+convolutional+networks+for+text+classification%2E+Advances+in+Neural+Information+Processing+Systems%2C+649%2D657%2E) [our card](https://md.research.elamur.ai/free/en/papers/zhang-2015-character-level-convolutional-networks-text/)
13. Mikolov, T., Sutskever, I., Chen, K., Corrado, G. S., & Dean, J. (2013). Distributed representations of words and phrases and their compositionality. Advances in Neural Information Processing Systems, 3111-3119. [find](https://scholar.google.com/scholar?q=Mikolov%2C+T%2E%2C+Sutskever%2C+I%2E%2C+Chen%2C+K%2E%2C+Corrado%2C+G%2E+S%2E%2C+%26+Dean%2C+J%2E+%282013%29%2E+Distributed+representations+of+words+and+phrases+and+their+compositionality%2E+Advances+in+Neural+Information+Processing+Systems%2C)
14. Nobata, C., Tetreault, J., Thomas, A., Mehdad, Y., & Chang, Y. (2016). Abusive language detection in online user content. Proceedings of the 25th International Conference on World Wide Web, 145-153. [find](https://scholar.google.com/scholar?q=Nobata%2C+C%2E%2C+Tetreault%2C+J%2E%2C+Thomas%2C+A%2E%2C+Mehdad%2C+Y%2E%2C+%26+Chang%2C+Y%2E+%282016%29%2E+Abusive+language+detection+in+online+user+content%2E+Proceedings+of+the+25th+International+Conference+on+World+Wide+Web%2C+145%2D153%2E)
