alexa_modelbuilder 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/alexa_modelbuilder.rb +6 -1
- metadata +4 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: fdf504fb7d8a678a2f194e9833b2ed284453d8fc
|
|
4
|
+
data.tar.gz: 6a501646101c422f4212737e6cce9313f4ff0430
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a92cf3dcebe9cbaa06dd5dba4fcd17e123eb8e85962271bb4e3c37bf47510c7cc11dc13870df959ab1e5b402392c6ccb4b9d9746ded30072359876cd1a70a68e
|
|
7
|
+
data.tar.gz: c4ced8db5cb577a2a0c1c02cdd6df906f79ececff363937238d85ba499790c43e888c4a78dc90ca2ff7c6b7bd8569bcc853e24220167b3c14f4c08b8c255249a
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/alexa_modelbuilder.rb
CHANGED
|
@@ -12,7 +12,7 @@ require 'lineparser'
|
|
|
12
12
|
class AlexaModelBuilder
|
|
13
13
|
using ColouredText
|
|
14
14
|
|
|
15
|
-
attr_reader :invocation
|
|
15
|
+
attr_reader :name, :invocation, :utterances
|
|
16
16
|
|
|
17
17
|
def initialize(s=nil, debug: false, locale: 'en-GB')
|
|
18
18
|
|
|
@@ -166,6 +166,10 @@ endpoint: input
|
|
|
166
166
|
info = {}
|
|
167
167
|
info['summary'] = h[:summary] || h[:name]
|
|
168
168
|
|
|
169
|
+
@utterances = h[:intent].select{|x| x.is_a? Hash}.flat_map do |x|
|
|
170
|
+
x.first[-1][:utterance]
|
|
171
|
+
end
|
|
172
|
+
|
|
169
173
|
examples = ["Alexa, open %s." % h[:invocation]]
|
|
170
174
|
examples += h[:intent].select{|x| x.is_a? Hash}.take(2).map do |x|
|
|
171
175
|
phrases = x.first[-1][:utterance]
|
|
@@ -281,6 +285,7 @@ endpoint: input
|
|
|
281
285
|
}
|
|
282
286
|
|
|
283
287
|
lm = model['interactionModel']['languageModel']
|
|
288
|
+
@name = h[:name]
|
|
284
289
|
lm['invocationName'] = @invocation = h[:invocation]
|
|
285
290
|
|
|
286
291
|
intents = h[:intent].map do |row|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: alexa_modelbuilder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
BQY/hxmkBusF1nvv0wUnFzEiFK2iMcWaD13hVGKWx9t+4+vtBennfNm+13zA8vQc
|
|
36
36
|
iKpMHyJmXkM3QwZ4X+v50mFh
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2019-12-
|
|
38
|
+
date: 2019-12-18 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: lineparser
|
|
@@ -103,7 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
103
|
- !ruby/object:Gem::Version
|
|
104
104
|
version: '0'
|
|
105
105
|
requirements: []
|
|
106
|
-
|
|
106
|
+
rubyforge_project:
|
|
107
|
+
rubygems_version: 2.5.2.1
|
|
107
108
|
signing_key:
|
|
108
109
|
specification_version: 4
|
|
109
110
|
summary: Builds an Alexa Skills Interaction Model and optionally an Alexa Skills manifest
|
metadata.gz.sig
CHANGED
|
Binary file
|