Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6954389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:35:57+00:00 2026-05-27T14:35:57+00:00

I am currently working on a project where I need to create possible answers

  • 0

I am currently working on a project where I need to create possible answers to WH question based on a given sentence.

Example sentence is:

Anna went to the store.

I need to create possible answers to the following questions.

Who went to the store?
Where did ana go?

I had already implemented the POST-Tagging of the words and I now know the Part of Speech of the word.

I had difficulty on determining what type of noun is the word if it is a noun so I can create a template for my answer.

Example is:

Anna - noun - person: possible answer to question who.

Store - noun - place: possible answer to question where.

I want to implement this using java

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:35:58+00:00Added an answer on May 27, 2026 at 2:35 pm

    You should not try to infer possible questions and their answers from the nouns present in a sentence. Instead, you should infer the type of questions you can ask from the activity described by the verb. In your example, the system should infer that the activity of going requires a subject who goes (possible answer to the “who” question), a place where the subject goes (possible answer to the “where to” question) as well as the time when the subject went there (possible answer to the “when” question) and potentially more (from where? with whom? by what means? which way? etc). Then it should check which answers are provided in the question. In your example, answers to “who” and “where” are provided, but “when” is not. In other words, you should have a mapping from verbs to questions that make sense for each verb.

    Then for each question applicable to the verb you should store prepositions that are used to indicate that answer in a sentence. For example, the answer to the “where to” question is often preceded by “to” and an answer to “when” question is often preceded by “at” or “on”. Note that subject (here answer to the “who” question) needs special treatment. Also, some verbs can be immediately followed by an object without prepositions and your verb dataset should indicate the question to which they constitute an answer. For example the verb “to enter” can be followed by an object which answer the “where/what” question as in “Anna entered the room”. Also, some nouns are exceptions and are never preceded by a preposition. For example “home” as in “Anna went home”. You need to treat these specially as well. Another thing to watch out for are idiomatic expressions like “Anna went to great lengths”. Again, special treatment is required.

    Generally, nouns in English do not have enough structure to allow you to determine what type of thing (e.g. a place, an object, a person, a concept etc) they denote. You would need to have a large dataset that breaks up all the words known to the system into different categories. If you do use a noun set like this, it should have a supporting role to increase system’s accuracy.

    Relying on verbs and prepositions is far more flexible as it allows the system to handle unknown expressions. For example, someone might say “Anna went to Bob”, but “Bob” is not a place. System that infers the role of each element from verb and preposition still handles this situation and properly treats “Bob” as the right answer for the “where to” question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on a project in java. I need to create a
I am currently working on a project where I need to create objects at
I am currently working on a project where users need to be able to
I am currently working on a project where I need to generate multiple values
I'm currently working on a pet project and need to do C++ development on
I am currently working on a large project and will relatively soon need a
In the project I am currently working on, we have the need to develop
Currently we are working on a project in which we need to come up
For a project I'm currently working on I need to implement object versioning. Unfortunately
I am working a project where i need to create a state machine work

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.