Loading problem...
A content intelligence platform stores keyword dictionaries for editorial themes and needs to classify each social post into one or more topic IDs.
Table: Keywords
Table: Posts
Classification rule:
Examples of token behavior:
Task: For each post, return its topic label using these output rules:
Output requirements:
Supported submission environments:
Keywords:
| topic_id | word |
|----------|----------|
| 1 | handball |
| 1 | football |
| 2 | vaccine |
| 3 | war |
Posts:
| post_id | content |
|---------|---------------------------------------------------------|
| 1 | Fans in Europe still call it football |
| 2 | The handball final and football semifinal sold out |
| 3 | Please stop the war and play handball |
| 4 | Morning walk with flowers and coffee |[
{"post_id":1,"topic":"1"},
{"post_id":2,"topic":"1"},
{"post_id":3,"topic":"1,3"},
{"post_id":4,"topic":"Ambiguous!"}
]Post 3 matches two topics because it contains both war (topic 3) and handball (topic 1). Post 4 has no exact keyword token.
Keywords:
| topic_id | word |
|----------|----------|
| 10 | cloud |
| 11 | cloud |
| 11 | security |
| 12 | retail |
Posts:
| post_id | content |
|---------|---------------------------------------|
| 101 | Cloud migration and security review |
| 102 | Retail campaign planning for stores |
| 103 | Cloudy weather outlook |[
{"post_id":101,"topic":"10,11"},
{"post_id":102,"topic":"12"},
{"post_id":103,"topic":"Ambiguous!"}
]The token cloud belongs to both topics 10 and 11. Cloudy is a different token and does not match cloud.
Keywords:
| topic_id | word |
|----------|----------|
| 2 | data |
| 2 | pipeline |
| 4 | scale |
| 7 | risk |
Posts:
| post_id | content |
|---------|----------------------------------|
| 201 | DATA data data pipeline |
| 202 | Scalable systems demand rigor |
| 203 | Risk data pipeline for scale |[
{"post_id":201,"topic":"2"},
{"post_id":202,"topic":"Ambiguous!"},
{"post_id":203,"topic":"2,4,7"}
]Topic IDs are deduplicated and sorted. Repeated keyword occurrences do not duplicate topic IDs.
Constraints