Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MODULE] - Statement question classifier #355

Open
jhoetter opened this issue Sep 27, 2023 · 0 comments
Open

[MODULE] - Statement question classifier #355

jhoetter opened this issue Sep 27, 2023 · 0 comments
Labels
cognition enhancement New feature or request

Comments

@jhoetter
Copy link
Member

Please describe the module you would like to add to bricks
Depending what kind of query/question type you have, you might need different search approaches; so detecting the type of query can be helpful to e.g. prioritize in retrieval. Some examples:

Keyword-query:
"Italian restaurants"
"Winter boots sale"
"SpaceX latest launch"
"Chocolate cake recipe"
"Jazz festivals 2023"

Interrogative-query:
"How do you make a sourdough starter?"
"When was the Declaration of Independence signed?"
"Who wrote the novel 'Pride and Prejudice'?"
"Where can I find the best sushi in Tokyo?"
"Why do leaves change color in the fall?"

Statement-query:
"Tell me about the history of the Eiffel Tower."
"Show me the weather forecast for New York next week."
"I want to know more about quantum physics."
"Give me options for vegetarian dinner recipes."
"I'm looking for books written by Jane Austen."

Do you already have an implementation?
The keyword classifier can be implemented by removing stopwords and seeing if the length of the sentence changed (significantly). Interrogative is rather "Why", "When", "How", "Where" and "Who".

Additional context
This is the statement-question classifier. Use these hints:

Part-of-Speech Tagging:
Utilize part-of-speech tagging to identify the grammatical structure of a sentence. Declarative sentences often start with nouns or verbs and may include more nouns or adjectives. Tools like spaCy or NLTK can help with part-of-speech tagging.

Dependency Parsing:
Apply dependency parsing to analyze the grammatical relationships between words in a sentence. Declarative sentences tend to have clear subject-verb-object structures, which can be identified through dependency parsing.

@jhoetter jhoetter added enhancement New feature or request cognition labels Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cognition enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant