0

I was working on creating a question answering system. Now I wanted to deal with incomplete or partial sentences. So the first step to this would be detecting whether the question entered by the user is complete or incomplete. How do I classify "Who is Obama's Wife" as complete and "Obama's Wife" as incomplete?

2

For formal English anyway you can parse with spaCy and then iterate through the tagged tokens looking for a finite verb (VerbForm=Fin, as opposed to Ger or Inf).

See https://spacy.io/usage/linguistic-features#rule-based-morphology

1
  • Hey! I am working with a search engine here. So basically most of the queries would be partially complete. I want to check if the sentence is partially complete or absolutely keyword based. – Djokester May 4 '18 at 10:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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