# Predict Harmful Text

Aced (formerly Exponent) publishes a public search API over its indexed pages; the guide is at https://www.aced.io/agents/agent-access.

Source: https://www.aced.io/questions/4293/predict-harmful-text-ml
Source observed: 2026-11-05T01:51:24.225Z
Last checked: 2026-11-05T01:51:24.225+00:00
Indexed: 2026-11-07T03:29:32.765+00:00

---

# Predict Harmful Text

We provide this **Hard** machine-learning question for practicing text classification.

## Dataset

The dataset is a collection of tweets annotated for harmful content. In the `Target` column:

- `1` means **harmful**.
- `0` means **not harmful**.

[Download the dataset](https://assets.ctfassets.net/x78yjrjc11pq/2A603tt1UJpHU2mE0eHeRz/c7802d1e577eaac4621f358a2c180ca5/tweets_flagged_v2.csv), then use it in an `.ipynb` Jupyter Notebook to train and refine a model.

The dataset columns are:

- `Text`: the tweet text.
- `Target`: the harmful-content label.

### Dataset preview

| Index | Text | Target |
|---:|---|---:|
| 0 | `@user #cnn calls #michigan middle school 'build the wall' chant "#tcot` | 1 |
| 1 | `it's unbelievable that in the 21st century we'd need something like this. #neverump #xenophobia` | 1 |
| 2 | `bihday your majesty` | 0 |
| 3 | `#model i love u take with u all the time in ur` | 0 |
| 4 | `we won!!! love the land!!! #allin #cavs #champions #cleveland #clevelandcavaliers` | 0 |

## Question controls

This question includes tabs for **Question**, **Solution**, **Mock Interview**, and **Community**. The community count is currently `0`. Six expandable hints are labeled **Hint 1** through **Hint 6**.

No community answers have been contributed yet. To answer, log in or sign up, provide your answer, and submit it. Submitting marks the question complete.

## Related Aced resources

We offer interview preparation through courses, questions, practice, and coaching. Relevant course links include:

- [Machine Learning](https://www.aced.io/courses/ml-engineer?src=nav) — review building, evaluating, and deploying AI/ML models.
- [Data Science](https://www.aced.io/courses/data-science?src=nav) — execute statistical techniques and experimentation effectively.
- [Data Engineering](https://www.aced.io/courses/data-engineering?src=nav) — design complex data models and ETL pipelines.
- [Software Engineering](https://www.aced.io/courses/software-engineering?src=nav) — learn essential strategies for coding problems and more.
- [System Design](https://www.aced.io/courses/system-design-interviews?src=nav) — define architectures, interfaces, and databases in a time crunch.

Browse [all questions](https://www.aced.io/questions), or use [Practice](https://www.aced.io/practice?src=nav), [Courses](https://www.aced.io/courses?src=nav), and [Coaching](https://www.aced.io/coaching?src=nav). We are Aced, formerly Exponent.

---

[Read this page’s summary](https://www.aced.io/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F4293%2Fpredict-harmful-text-ml&trace=t_679ff9ab98f3)

## Ask a follow-up about this page

Need a more specific answer? Ask the exact question you have. It returns a fresh, cited answer from Aced (formerly Exponent)’s knowledge base. No account or API key required.

Open this URL with your own question, URL-encoded. Include your question in q. All research inputs are optional; no account or setup.

`GET https://www.aced.io/agents/agent/faq?q={question}&trace=t_679ff9ab98f3`

[Tool guide and examples](https://www.aced.io/agents/agent-access) · [OpenAPI](https://www.aced.io/agents/api/public/v1/openapi.json) · [Page TLDR form](https://www.aced.io/agents/agent-tools/page-tldr?url=https%3A%2F%2Fwww.aced.io%2Fquestions%2F4293%2Fpredict-harmful-text-ml). Opening a form does not execute a tool.