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

fix:more intent formulations #14

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion locale/en-us/antonym.intent
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
what are the antonyms of {query}
what is a antonym of {query}
what is the antonym of {query}
what is the antonym of {query}
what are the antonyms of {query}
what is an antonym for {query}
what is the opposite of {query}
can you tell me the antonyms for {query}
do you know any antonyms for {query}
can you give me the opposite of {query}
I'm curious, what is the antonym of {query}
are there any antonyms for {query}
is there a word that means the opposite of {query}
I need to know the antonyms of {query}
help me find an antonym for {query}
could you help me with the antonyms of {query}
for the word {query}, what is the antonym
if I say {query}, what is the opposite
can you give me some antonyms for the word {query}
11 changes: 10 additions & 1 deletion locale/en-us/definition.intent
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
what is a {query}
what is the definition of {query}
what is the definition of {query}
can you tell me what a {query} is
what does {query} mean
give me the definition of {query}
what is the meaning of {query}
how would you define {query}
could you explain what {query} is
what is a {query}
can you describe {query}
what do you call a {query}
20 changes: 19 additions & 1 deletion locale/en-us/holonym.intent
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
what are the holonyms of {query}
what is a holonym of {query}
what is the holonym of {query}
what is the holonym of {query}
can you tell me the holonyms for {query}
what is a holonym for {query}
do you know any holonyms of {query}
can you give me the holonym of {query}
are there any holonyms for {query}
what can I say that includes {query}
what is the larger term that includes {query}
what is the term that encompasses {query}
what are the words that include {query}
what is a term that represents a group including {query}
what is a broader term for {query}
can you give me the name of the category that {query} belongs to
what is a term that describes a whole including {query}
what is a word that represents a larger concept that includes {query}
what is the name for something that includes {query}
can you tell me the name of the class that {query} falls under
what is the larger category that includes {query}
what would you call the group that {query} is part of
9 changes: 8 additions & 1 deletion locale/en-us/hypernym.intent
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
what are the hypernyms of {query}
what is a hypernym of {query}
what is the hypernym of {query}
what is the hypernym of {query}
what is a broader term for {query}
what is a general word that includes {query}
can you give me a term that is more general than {query}
what is a word that describes a category including {query}
can you tell me the name of the class that {query} falls under
what is a term that encompasses {query}
what is a term that represents a larger concept than {query}
9 changes: 8 additions & 1 deletion locale/en-us/hyponym.intent
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
what are the hyponyms of {query}
what is a hyponym of {query}
what is the hyponym of {query}
what is the hyponym of {query}
what is a more specific term for {query}
can you give me a term that falls under {query}
what is a word that refers to a subtype of {query}
what is an example of something that is a type of {query}
can you tell me a specific instance of {query}
what would you call a member of the category {query}
what is a term that describes a particular kind of {query}
12 changes: 11 additions & 1 deletion locale/en-us/lemma.intent
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
what are the lemmas of {query}
what is a lemma of {query}
what is the lemma of {query}
what is the lemma of {query}
what are the lemmas of {query}
what is a lemma of {query}
JarbasAl marked this conversation as resolved.
Show resolved Hide resolved
what is the lemma of {query}
what are the different forms of the word {query}
can you give me the base form of {query}
what is a related word to {query}
what is the root form of {query}
can you tell me the variations of {query}
what are the words derived from {query}
what are some related terms to {query}
12 changes: 11 additions & 1 deletion locale/en-us/search_wordnet.intent
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,14 @@ ask wordnet about {query}
search word net for {query}
search wordnet for {query}
what does word net say about {query}
what does wordnet say about {query}
what does wordnet say about {query}
ask WordNet about {query}
ask WordNet for information on {query}
search WordNet for {query}
search WordNet to find out about {query}
what does WordNet say about {query}
what information does WordNet provide for {query}
can you check WordNet for {query}
what insights does WordNet have on {query}
look up {query} in WordNet.
can you find {query} in WordNet
8 changes: 4 additions & 4 deletions translations/ca-es/dialogs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"no_answer.dialog": [
"Word net no en sap la resposta"
]
}
"no_answer.dialog": [
"Word net no en sap la resposta"
]
}
112 changes: 94 additions & 18 deletions translations/en-us/intents.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,115 @@
{
"hypernym.intent": [
"what are the hypernyms of {query}",
"what is a hypernym of {query}",
"what is the hypernym of {query}",
"what are the hypernyms of {query}"
"what is a broader term for {query}",
"what is a general word that includes {query}",
"can you give me a term that is more general than {query}",
"what is a word that describes a category including {query}",
"can you tell me the name of the class that {query} falls under",
"what is a term that encompasses {query}",
"what is a term that represents a larger concept than {query}"
],
"antonym.intent": [
"what are the antonyms of {query}",
"what is a antonym of {query}",
"what is the antonym of {query}",
"what are the antonyms of {query}"
],
"hyponym.intent": [
"what is a hyponym of {query}",
"what is the hyponym of {query}",
"what are the hyponyms of {query}"
"what are the antonyms of {query}",
"what is an antonym for {query}",
"what is the opposite of {query}",
"can you tell me the antonyms for {query}",
"do you know any antonyms for {query}",
"can you give me the opposite of {query}",
"I'm curious, what is the antonym of {query}",
"are there any antonyms for {query}",
"is there a word that means the opposite of {query}",
"I need to know the antonyms of {query}",
"help me find an antonym for {query}",
"could you help me with the antonyms of {query}",
"for the word {query}, what is the antonym",
"if I say {query}, what is the opposite",
"can you give me some antonyms for the word {query}"
Comment on lines +15 to +32
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

LGTM: Antonym intent expanded with diverse formulations, but contains a duplicate.

The additions to the "antonym.intent" array provide an excellent variety of ways to ask about antonyms or opposites. This expansion aligns well with the PR objective of enhancing intents with more sample formulations.

However, there's a duplicate entry that should be removed:

 "what are the antonyms of {query}",
 "what is a antonym of {query}",
 "what is the antonym of {query}",
-"what are the antonyms of {query}",
 "what is an antonym for {query}",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"what are the antonyms of {query}",
"what is a antonym of {query}",
"what is the antonym of {query}",
"what are the antonyms of {query}"
],
"hyponym.intent": [
"what is a hyponym of {query}",
"what is the hyponym of {query}",
"what are the hyponyms of {query}"
"what are the antonyms of {query}",
"what is an antonym for {query}",
"what is the opposite of {query}",
"can you tell me the antonyms for {query}",
"do you know any antonyms for {query}",
"can you give me the opposite of {query}",
"I'm curious, what is the antonym of {query}",
"are there any antonyms for {query}",
"is there a word that means the opposite of {query}",
"I need to know the antonyms of {query}",
"help me find an antonym for {query}",
"could you help me with the antonyms of {query}",
"for the word {query}, what is the antonym",
"if I say {query}, what is the opposite",
"can you give me some antonyms for the word {query}"
"what are the antonyms of {query}",
"what is a antonym of {query}",
"what is the antonym of {query}",
"what is an antonym for {query}",
"what is the opposite of {query}",
"can you tell me the antonyms for {query}",
"do you know any antonyms for {query}",
"can you give me the opposite of {query}",
"I'm curious, what is the antonym of {query}",
"are there any antonyms for {query}",
"is there a word that means the opposite of {query}",
"I need to know the antonyms of {query}",
"help me find an antonym for {query}",
"could you help me with the antonyms of {query}",
"for the word {query}, what is the antonym",
"if I say {query}, what is the opposite",
"can you give me some antonyms for the word {query}"

],
"holonym.intent": [
"what are the holonyms of {query}",
"what is a holonym of {query}",
"what is the holonym of {query}",
"what are the holonyms of {query}"
"can you tell me the holonyms for {query}",
"what is a holonym for {query}",
"do you know any holonyms of {query}",
"can you give me the holonym of {query}",
"are there any holonyms for {query}",
"what can I say that includes {query}",
"what is the larger term that includes {query}",
"what is the term that encompasses {query}",
"what are the words that include {query}",
"what is a term that represents a group including {query}",
"what is a broader term for {query}",
"can you give me the name of the category that {query} belongs to",
"what is a term that describes a whole including {query}",
"what is a word that represents a larger concept that includes {query}",
"what is the name for something that includes {query}",
"can you tell me the name of the class that {query} falls under",
"what is the larger category that includes {query}",
"what would you call the group that {query} is part of"
Comment on lines +35 to +55
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

LGTM: Holonym intent expanded with diverse formulations, but some phrases may be misplaced.

The additions to the "holonym.intent" array provide an excellent variety of ways to ask about holonyms or larger terms that include the query. This expansion aligns well with the PR objective of enhancing intents with more sample formulations.

However, some phrases seem more related to hypernyms than holonyms:

"what is a broader term for {query}",
"can you give me the name of the category that {query} belongs to",

Consider reviewing these phrases and possibly moving them to the "hypernym.intent" section to maintain accuracy in intent classification.

],
"definition.intent": [
"what is a {query}",
"what is the definition of {query}"
"lemma.intent": [
"what are the lemmas of {query}",
"what is a lemma of {query}",
"what is the lemma of {query}",
"what are the lemmas of {query}",
"what is a lemma of {query}",
"what is the lemma of {query}",
"what are the different forms of the word {query}",
"can you give me the base form of {query}",
"what is a related word to {query}",
"what is the root form of {query}",
"can you tell me the variations of {query}",
"what are the words derived from {query}",
"what are some related terms to {query}"
],
Comment on lines +57 to +71
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

LGTM: New lemma intent added with diverse formulations, but contains duplicates.

The addition of the "lemma.intent" array is a valuable expansion, providing various ways to ask about lemmas and related word forms. This new intent aligns well with the PR objective of enhancing the system's language-related capabilities.

However, there are duplicate entries that should be removed:

 "what are the lemmas of {query}",
 "what is a lemma of {query}",
 "what is the lemma of {query}",
-"what are the lemmas of {query}",
-"what is a lemma of {query}",
-"what is the lemma of {query}",
 "what are the different forms of the word {query}",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"lemma.intent": [
"what are the lemmas of {query}",
"what is a lemma of {query}",
"what is the lemma of {query}",
"what are the lemmas of {query}",
"what is a lemma of {query}",
"what is the lemma of {query}",
"what are the different forms of the word {query}",
"can you give me the base form of {query}",
"what is a related word to {query}",
"what is the root form of {query}",
"can you tell me the variations of {query}",
"what are the words derived from {query}",
"what are some related terms to {query}"
],
"lemma.intent": [
"what are the lemmas of {query}",
"what is a lemma of {query}",
"what is the lemma of {query}",
"what are the different forms of the word {query}",
"can you give me the base form of {query}",
"what is a related word to {query}",
"what is the root form of {query}",
"can you tell me the variations of {query}",
"what are the words derived from {query}",
"what are some related terms to {query}"
],

"hyponym.intent": [
"what are the hyponyms of {query}",
"what is a hyponym of {query}",
"what is the hyponym of {query}",
"what is a more specific term for {query}",
"can you give me a term that falls under {query}",
"what is a word that refers to a subtype of {query}",
"what is an example of something that is a type of {query}",
"can you tell me a specific instance of {query}",
"what would you call a member of the category {query}",
"what is a term that describes a particular kind of {query}"
],
"search_wordnet.intent": [
"search wordnet for {query}",
"search word net for {query}",
"ask word net about {query}",
"ask wordnet about {query}",
"search word net for {query}",
"search wordnet for {query}",
"what does word net say about {query}",
"what does wordnet say about {query}",
"what does word net say about {query}"
"ask WordNet about {query}",
"ask WordNet for information on {query}",
"search WordNet for {query}",
"search WordNet to find out about {query}",
"what does WordNet say about {query}",
"what information does WordNet provide for {query}",
"can you check WordNet for {query}",
"what insights does WordNet have on {query}",
"look up {query} in WordNet.",
"can you find {query} in WordNet"
],
"lemma.intent": [
"what is a lemma of {query}",
"what is the lemma of {query}",
"what are the lemmas of {query}"
"definition.intent": [
"what is a {query}",
"what is the definition of {query}",
"can you tell me what a {query} is",
"what does {query} mean",
"give me the definition of {query}",
"what is the meaning of {query}",
"how would you define {query}",
"could you explain what {query} is",
"what is a {query}",
"can you describe {query}",
"what do you call a {query}"
Comment on lines +102 to +113
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

LGTM: Definition intent expanded with diverse formulations, but contains a duplicate.

The additions to the "definition.intent" array provide an excellent variety of ways to ask about the definition or meaning of a term. This expansion aligns well with the PR objective of enhancing intents with more sample formulations.

However, there's a duplicate entry that should be removed:

 "what is a {query}",
 "what is the definition of {query}",
 "can you tell me what a {query} is",
 "what does {query} mean",
 "give me the definition of {query}",
 "what is the meaning of {query}",
 "how would you define {query}",
 "could you explain what {query} is",
-"what is a {query}",
 "can you describe {query}",
 "what do you call a {query}"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"definition.intent": [
"what is a {query}",
"what is the definition of {query}",
"can you tell me what a {query} is",
"what does {query} mean",
"give me the definition of {query}",
"what is the meaning of {query}",
"how would you define {query}",
"could you explain what {query} is",
"what is a {query}",
"can you describe {query}",
"what do you call a {query}"
"definition.intent": [
"what is a {query}",
"what is the definition of {query}",
"can you tell me what a {query} is",
"what does {query} mean",
"give me the definition of {query}",
"what is the meaning of {query}",
"how would you define {query}",
"could you explain what {query} is",
"can you describe {query}",
"what do you call a {query}"

]
}
8 changes: 4 additions & 4 deletions translations/pt-pt/dialogs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"no_answer.dialog": [
"não encontrei a resposta na WordNet"
]
}
"no_answer.dialog": [
"n\u00e3o encontrei a resposta na WordNet"
]
}
62 changes: 24 additions & 38 deletions translations/pt-pt/intents.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,25 @@
{
"hypernym.intent": [
null,
"qual é o hiperônimo de {query}",
null
],
"antonym.intent": [
"qual é um antônimo de {query}",
"qual é o antônimo de {query}",
null
],
"hyponym.intent": [
null,
"qual é o hipônimo de {query}",
null
],
"holonym.intent": [
null,
"qual é o holônimo de {query}",
null
],
"definition.intent": [
"o que é (uma|um|) {query}",
"(define|qual é a definição de) {query}"
],
"search_wordnet.intent": [
null,
null,
null,
null,
"o que diz (o|a) wordnet sobre {query}",
null
],
"lemma.intent": [
null,
"qual é o sinónimo de {query}",
null
]
}
"hypernym.intent": [
"qual \u00e9 o hiper\u00f4nimo de {query}"
],
"antonym.intent": [
"qual \u00e9 o ant\u00f4nimo de {query}",
"qual \u00e9 um ant\u00f4nimo de {query}"
],
"holonym.intent": [
"qual \u00e9 o hol\u00f4nimo de {query}"
],
"lemma.intent": [
"qual \u00e9 o sin\u00f3nimo de {query}"
],
Comment on lines +12 to +14
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Issue: Incorrect terminology in lemma intent.

The "lemma.intent" is using the term "sinônimo" (synonym) instead of "lema" (lemma). These are different linguistic concepts and could lead to confusion.

Consider changing the intent to:

"lemma.intent": [
    "qual é o lema de {query}",
    "me diga o lema da palavra {query}"
]

This change ensures the intent accurately reflects the concept of lemma rather than synonym.

"hyponym.intent": [
"qual \u00e9 o hip\u00f4nimo de {query}"
],
"search_wordnet.intent": [
"o que diz (o|a) wordnet sobre {query}"
],
"definition.intent": [
"(define|qual \u00e9 a defini\u00e7\u00e3o de) {query}",
"o que \u00e9 (uma|um|) {query}"
]
}
Loading