CPC G06F 40/166 (2020.01) [G06F 40/247 (2020.01); G06F 40/253 (2020.01); G06N 5/022 (2013.01)] | 20 Claims |
1. A computer-implemented method comprising:
selecting, by one or more processors, one or more sentences from an original text dataset as one or more selected sentences;
determining, by the one or more processors, for each selected sentence one or more grammatical elements of the selected sentence that can be negated as one or more negatable elements;
determining, by the one or more processors, for one or more negatable words in each negatable element one or more antonyms;
based on each determined antonym, creating, by the one or more processors, a negated sentence by replacing the respective negatable word in the selected sentence for which the antonym was determined with the determined antonym; and
adding, by the one or more processors, the negated sentence to a training dataset, the training dataset configured to be used in a natural language processing (NLP) machine learning algorithm.
|