Questions and Basic English Sentence Structure for NLP.

When working on machine learning (ML) for natural language processing (NLP), we have to understand the relationships between the parts of the statement.

My personal interest is in the question-answer pairs because I am working on the bot answering the questions. If you know me I am not in the idle chat. 


Let's take an example sentence.

text = "I went to the Home Depot store, to buy the weed-cutter line because I have to go Up North to cut the tall grass and bushes."

Now let's ask ourselves a few questions.

Who is doing the work?

The subject (S) of this sentence is "I".

What is being done?

The verb (V) of this sentence is "went".

What is the tense of this sentence?


The sentence is in the "past simple". 

A tense is required in English to compose a proper sentence. 
For example, "Be!, is still a (borderline) sentence as it implies something similar to "You must persevere in your existence and be." 
"Go!", "Swim!", Read!", are other, and easier-to-understand, examples.


Where is the action located?

The sentence is referring to "the Home Depot store" as a location of the (past) action.
The statement "where" describes Complement (C) to this action.


What is the Subject-Verb-Complement(SVC) English sentence structure?

The Subject-Verb-Complement or SVC, as it is commonly abbreviated, is one of a handful of basic English sentence structures.

In the graph, I could represent the 

S <-- who is doing --  -- what is done -->  V -- where is done --> C

What are the next steps?


Later, I will analyze the rest of the sentence. And show how, based on the question posed, we can combine the answers and compose the answer.





 



As an Amazon Associate I earn from qualifying purchases.

My favorite quotations..


“A man should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.”  by Robert A. Heinlein

"We are but habits and memories we chose to carry along." ~ Uki D. Lucas


Popular Recent Articles