Skip to content

Commit

Permalink
improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigopivi committed Jun 11, 2018
1 parent 611ab65 commit 8b81fdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ <h2>
}
}, 400);
Prism.languages.chatito = {
'intentDefinition': { pattern: /^(((\n|\n\r)+)?)%\[[^\]]+\]((\([0-9]+\))?)/i, greedy: true },
'intentDefinition': { pattern: /%\[[^\]]+\]((\([0-9]+\))?)/i, greedy: true },
'slot': { pattern: /\@\[[^\]]+(\?)?\]/i, greedy: true },
'alias': { pattern: /~\[[^\]]+(\?)?\]/i, greedy: true },
'default': { pattern: /[^\r\n]/i, greedy: true },
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The generated dataset should be available next to your definition file.
Here is the full npm generator options:
```
npx chatito <pathToFile> --format=<format> --formatOptions=<formatOptions> --max=<max> --min=<min>
npx chatito <pathToFile> --format=<format> --formatOptions=<formatOptions>
```
- `<pathToFile>` path to the grammar file. e.g.: lightsChange.chatito
Expand Down
6 changes: 3 additions & 3 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Chatito design principles:
Following those principles this is an example of the language and its generated output:

```
%[greet]
%[greet](2)
~[hi] @[name?] ~[whatsUp?]
~[hi]
Expand All @@ -34,7 +34,7 @@ Following those principles this is an example of the language and its generated

This code could produce a maximun of 18 examples, the output format is independent from the DSL language,
although it is recommended to use a newline delimited format to just stream results to a file, a format like ndjson is recommended over plain json.
That said, here is an example of two `Newline Delimited JSON` (ndjson.org) examples generated from the previous code:
That said, the previous dsl code generates two examples for the `greet` intent. Here is the `Newline Delimited JSON` (ndjson.org) examples generated from the previous code:

```
[{"type":"Text","value":"hi how is it going"}]
Expand All @@ -59,7 +59,7 @@ non printable characters, this are the requirements of document source text:

### 2.1 - Entities
Entities are the way to define keywords that wrap sentence variations and attach some properties to them.
There are three types of entities: intent, slot and alias.
There are three types of entities: `intent`, `slot` and `alias`.

#### 2.1.1 - Intent

Expand Down

0 comments on commit 8b81fdc

Please sign in to comment.