Downloads · 30 days
39
1% of all-time downloads
Wyona/message-classification-question-other-smalltalk-modified
message-classification-question-other-smalltalk-modified is a text classification model from Wyona. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
- Description - Summary and intended uses - Languages - Dataset Structure - Data Fields - Data Splits - Dataset Creation - Curation Rationale - Source Data
Downloads · 30 days
39
1% of all-time downloads
All-time downloads
3.7K
Public
Repo size
804 MB
Likes
7
Public
Click a slice to open those files.
.bin268 MB · 100%
From the Hugging Face model README
Model to detect whether a sentence is a question.
For example
The model can be used by bots (e.g. https://ukatie.com) to detect questions inside chatrooms, like for example Slack, MS Teams, Discord or Matrix.
So far, English is the only supported language.
Text: Short input sentence, e.g. "Which ANN algorithm has Apache Lucene implemented"
Label: Question or Other
Question: 10K samples
Other: 10K samples
Training: 18K samples shuffled
Validation: 2K samples shuffled
Simple, short and basic language examples were chosen, because those contain the same kind of words and word placements as long-winded questions with rare words.
Also the goal of this is to detect questions in a chatroom, which is a medium where people often use very short sentences and a lot of greetings or small-talk.
https://github.com/zeloru/small-english-smalltalk-corpus
It is scraped data from ESL language learning material.
Out of the already scraped data, only samples from certain conversations were taken, because of quality issues with some of them.
Because we also want to detect questions that are missing a questionmark, most of the samples had the questionmark removed. The same was done for the "other" label where "." were removed from the end of a sentence. This was done, so these identifiers don't become the only feature the model looks at.
The annotations of "question" or "other" were done automatically by taking questions in the conversations as "question" and the answers as "other"
There seems to be an inbalance of greeting word combinations in the beginning of sentences, for example "Hi, has anyone deployed X in Y" is falsely not detected as a question because of the "Hi, " part. This issue will be addressed in updates.
Sentences in the form of "Wondering if 'question'..." and "I'm asking for help about 'question'..." are seemingly hard to detect and need more samples in the data.
Code fragments in input sentences are sometimes detected as questions. If code is present, it should probably be filtered out beforehand.