forked from moul/pipotron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.yml
40 lines (32 loc) · 794 Bytes
/
example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# this is an example of a very basic enligh grammar
#
# <noun> <passive_verb>
# <noun> <passive_verb> <preposition> <noun>
# <noun> <passive_verb> <preposition> <noun> and <passive_verb> <preposition> <noun>
output:
- '{{pick "noun_phrase"}} {{pick "passive_verb"}}'
- '{{pick "noun_phrase"}} {{pick "passive_verb"}} {{pick "preposition"}} {{pick "noun_phrase"}}'
- '{{pick "noun_phrase"}} {{pick "passive_verb"}} {{pick "preposition"}} {{pick "noun_phrase"}} and {{pick "passive_verb"}} {{pick "preposition"}} {{pick "noun_phrase"}}'
noun_phrase:
- 'the {{pick "noun"}}'
- 'the {{pick "adjective"}} {{pick "noun"}}'
- '{{pick "name"}}'
noun:
- cat
- dog
- fish
name:
- Bob
- Alice
- Mike
preposition:
- with
- on
passive_verb:
- sat
- eat
- talked
- was
adjective:
- angry
- frightened