I am new to NLTK. I would like to create a negative sentence (which usually will be in the present tense). For example, there is a function that allows me to convert: "I am running" to "I am not starting"
or
"She is running" to "She is not working."
I suppose I could use POS to detect the verb and its previous pronoun, but I'm just wondering if there was a simpler built-in function
You must use the parser to find the head (verb) of the predicate of the sentence.
, , ( ), .
1 (was > , will > , have > have not ..). , : , - (.. ), , , (.. ), , 3- (.. ). (, , ).
- , ShaiCohen . , . , . : , - > , - .
API.
1 , . ...
, . , , , , " ". , , , " , ", 3 ? , "", . , "" "", - . , " ", " ", / . , . , ( - POS), , .
, , , , , . :
a. I didn’t see anyone at the office b. * I saw anyone at the office c. I saw someone at the office
() (), (), - -.
, . : "" " " .
Source: https://habr.com/ru/post/1540388/More articles:R: Sum of Complete.cases in one column, grouped (or sorted) by the value in another column - sortinghttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1540384/union-query-in-access-too-complex-for-evaluation&usg=ALkJrhgLnsfnFyjmhIWiBYvz6lchw62LPAGive warning to call Apple method - iosDelete last word in bash variable - bashStructures and unpacking in Python - pythonPyQt password form - pythonAmpersand in front of a functional body - c ++Channels using sockjs (node.js, socket.io) - node.jsПочему у HttpResponse есть методы перенаправления? - asp.net-coreWindbg conditional breakpoint with string comparison in nested structure - cAll Articles