Questions tagged [grammar-inference]
4 questions
3
votes
1 answer
how to programmatically introduce grammatical errors in sentences
I've a set of sentences in English language. I'm exploring ways to create a dataset of sentences with grammatical errors programmatically. The following options has been tried out randomly -
identify verbs, propositions etc. by POS tagging and…
Van Peer
- 285
- 1
- 3
- 12
3
votes
2 answers
Detecting grammatical errors with BERT
We fine-tuned BERT (bert-base-uncased) model with CoLA dataset for sentence classification task. The dataset is a mix of sentences with and without grammatical errors. The retrained model is then used to identify sentences with or without errors.…
Van Peer
- 285
- 1
- 3
- 12
3
votes
2 answers
Learn (common) grammar / pattern from set of sample strings?
So I currently have a text pattern detection challenge to solve at work. I am trying to make an outlier detection algorithm for a database, for string columns.
For example let's say I have the following list of strings:
["abc123", "jkj577",…
user98969
1
vote
1 answer
How to capture the detail of an attribute in a sentence?
The problem is best explained using an example, so please consider the sentence below:
Made of airy cotton with a touch of stretch, the Pinafore Dress features a modern square neckline.
Here, cotton (FABRIC) and square neckline (NECKLINE) are two…
user1274878
- 171
- 1
- 2