0

I have recently discovered extraction of parts of speech and I'd like to see what I can get from patterns once a sentence is POS tagged. I am aware that some sentences will be difficult to categorise but in terms of basic sentence categories there must be ways of saying this is a question or this is an imperative etc.

If anyone could direct me to what the basic sentence categories are and whether POS tag patterns can help derive this that would be a great reading starting point for me

2 Answers 2

2

From a part of speech perspective, you'll be interested in the the tags that begin with "W" found here: https://www.ling.upenn.edu/courses/Fall_2003/ling001/penn_treebank_pos.html

However, the PoS tags won't be enough. Consder a sentence like,

  • Bob is the person who ate the cake.

The sentence isn't interrogative but the "who" will trigger the PoS logic. Hence, you might use a dependency model to look at how the word is used grammatically. Enter the same sentence into this: http://corenlp.run/ and look at the 'enhanced ++ dependencies". You'll notice that "who" has an arrow back to "person" (these are adjective clauses introduced by relative pronouns; you can skip over these).

There are other cases like:

  • When the cake was gone, I was sad.

Again, the PoS logic will trigger, but you can add some code to see if the phrase modifies the verb. If it does, then it's likely an adverbial phrase (and can be skipped).

Note that many question words will follow a preposition:

  • For what reason did XXX ...

Finally, there are the yes/no and tag questions. These use auxiliary/modal verbs:

  • Is Tom smart?
  • Does Bob eat pizza?
  • Can (could/would/should) Sue go to the beach?
  • Bob ate the pizza, didn't he?

(within the clause, no subject precedes the aux verb)

0

The approach to grammar you are interested in seems to me to be similar to tagmemics, so you might be interested in looking that up.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.