-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
There are general recommendations for preparing the input data,
examples of using the json2csv package and output
data variants of CSV files.
Let's create a new JSON file with name intents-file.json and this
structure for key-values:
{
"greetings": [
"hi", "hello", "hey"
],
"questions": [
"why", "what for", "where", "when"
],
"farewells": [
"bye", "goodbye", "see you later"
]
}In this JSON structure:
- key is a name of the intent (in the output CSV file);
- values are list of the words that must be qualified (assigned to the intent);
Let's create a new JSON file with name filter-file.json and only this
structure for key-values:
{
"skip_prefixes": [
"+", "-"
],
"skip_suffixes": [
"!", ")"
],
"skip_words": [
"hate", "death", "shut up"
]
}
⚠️ Please note: keys should not be changed because they're used internally to filter through the list in thejson2csvpackage.
In this JSON structure:
- key is a name of the list to filter input strings:
-
skip_prefixesis a list of the prefixes; -
skip_suffixesis a list of the suffixes; -
skip_wordsis a list of the words;
-
- values are list of the words (prefixes, suffixes) that must be skipped;
Sometimes it happens, it's true… but don't get upset! 🙂
Wiki is a dynamically growing section, so write us your question, and we'll try to answer it. If the question is interesting and/or repeated too often, we'll add it to a FAQ section (with reference to the author's issue).
The best way to ask a question is to create a new issue or a discussion in GitHub repository.
So, follow this checklist to ask a question that we can answer in the shortest possible time:
- Try to search similar question in the issues section.
- If your question is about Go, or else, try to search at StackOverflow first.
- Please fully follow our template to create a new issue.
- If English is not your native language, please use an online translator in advance (for example, DeepL or Google Translate).
- Demonstrate understanding to authors, because this is Open Source and not-for-profit product, and their support is not paid.
- Be nice to the other members of our community.