Algorithm for Negating Sentences

前端 未结 6 837
庸人自扰
庸人自扰 2021-02-12 15:15

I was wondering if anyone was familiar with any attempts at algorithmic sentence negation.

For example, given a sentence like \"This book is good\" provide any number of

6条回答
  •  暖寄归人
    2021-02-12 15:50

    I'd recommend checking out wordnet. You can use it to lookup antonyms for a word, so you could conceivably replace "bad" with "not good" since bad is an antonym of good. NLTK has a simple python interface to wordnet.

提交回复
热议问题