alexa_modelbuilder 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 48b23ef6fd3cd619c47105adad0d34c21f9c7a4027f60744f0b69f8b39d7382c
4
- data.tar.gz: 5338a51424250d5956b75a2c6d013957a5e8ced9bb6af670533656c370179f65
2
+ SHA1:
3
+ metadata.gz: fdf504fb7d8a678a2f194e9833b2ed284453d8fc
4
+ data.tar.gz: 6a501646101c422f4212737e6cce9313f4ff0430
5
5
  SHA512:
6
- metadata.gz: 791af3e57bf90bd9b3165839593a01aa1e9d65d7d28fac63d2161d8098259dcef4edca08de7a89df407e9a6aa7a3c7aa4098f59665e063fe186463182fb555a4
7
- data.tar.gz: 379d9d47f535bba21899c57c4f0154deb124c2c2de829423bb3b84287e3bf0c3b8fccd08609810136e0045464211491bc79e848c36505e94337688892bccf04b
6
+ metadata.gz: a92cf3dcebe9cbaa06dd5dba4fcd17e123eb8e85962271bb4e3c37bf47510c7cc11dc13870df959ab1e5b402392c6ccb4b9d9746ded30072359876cd1a70a68e
7
+ data.tar.gz: c4ced8db5cb577a2a0c1c02cdd6df906f79ececff363937238d85ba499790c43e888c4a78dc90ca2ff7c6b7bd8569bcc853e24220167b3c14f4c08b8c255249a
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.1
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-10 00:00:00.000000000 Z
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
- rubygems_version: 3.0.3
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