fonemas 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODUzNTQ5MzM0YTViMDUyODc1MjM2MDRjYTg5OTUxOTEwYmZlYzNlYQ==
4
+ Yjc4YjBjY2YxM2E3MDBiOGZhZDBkOTFjNDZjM2M2NGE2ZGYzMmNlNA==
5
5
  data.tar.gz: !binary |-
6
- NjQ0NDlhZDVhZjVhOGY0NThkZjcyODA0ZjZlOWIyYWIzYTkyNDYzOQ==
6
+ YmI3NzEwZDkzNDNjMDkyNmUxNThkNjIxM2U0Mjg2NzNlOTE4OGFlYg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NTkzNDM4YTI2ZGM0NTExZGViNjhiMmNmN2I2M2Y1NTdhYzdlNWRmY2ExZjVh
10
- ZWFhMWYzNDcxNWNiNDZkYzdiYWYyNDAyMzVlM2M3YTk3ZDUwZmNhMWE5ODkz
11
- MmJhZWVhOTRmYWVhNWRmODBiMDk4NjQxZTFhN2FlNWViOTU2ODQ=
9
+ MTAyZTAzMjljYjZjZGU2MGM2MmVmY2UyYzJjZDM4MjE0YTVlNWQ1MTk5N2E2
10
+ ZmMxMzRmMWY4YzE1MDczYmMxYmZiOTk5NzAxNzc2OTI3MjZkNDAzNGEwMzkw
11
+ NWJiYjVhNWY5ZTNmNjZjNWZjYWI2ODk1MTMxZTM2ZDM1NDRjNmQ=
12
12
  data.tar.gz: !binary |-
13
- YTJlMTdhZDZhMzM1YzA2MDU3YWFkMzQyMGEwYTMzYThiZGQ1MTIzYWZiZmJj
14
- NmZjMWM4OGQyOThlZmIzMjI4NjYzZDIwOTcyMTFjNmFjN2I3MzU4MjE3Nzgw
15
- YjZkMmM5ZDE5MTc3NTU4ZDhjZGFmOWIxZTMyNTA2ZjRlMTVjYmU=
13
+ YzgzYWJjNDNmOTBjODQwNzUyYjdkMzI4YzY1NzU3NjY2NzJiYTgxNTAyMmY0
14
+ ODE2OTQxOWZjMmVhM2FmOTlhYjk0YjBhZTg1YWU3ODE5ODA5NzJjZTE1MzVk
15
+ YjA3YmM5NzNiM2Y3NTcwMjU0MTY4YWM0YzAxYjEzMDU1NDVmNTE=
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
4
+
5
+ require 'fonemas'
6
+
7
+ ARGF.set_encoding('UTF-8')
8
+
9
+ input = ARGF.readlines
10
+
11
+ words = []
12
+
13
+ for i in input
14
+ #1 palabra por linea
15
+ words << i.split(" ")[0].chomp.downcase
16
+ end
17
+
18
+ words = words.sort
19
+ words = words.uniq
20
+
21
+
22
+ for i in words
23
+ fonemas = Fonemas.fonemas(i)
24
+ count = 0
25
+ for f in fonemas
26
+ if count > 0
27
+ puts "#{i}(#{count})\t#{f}"
28
+ else
29
+ puts "#{i}\t#{f}"
30
+ end
31
+ count += 1
32
+ end
33
+ end
@@ -1,3 +1,3 @@
1
1
  module Fonemas
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fonemas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Bahamondez Honores
@@ -70,7 +70,8 @@ description: Creación de fonemas para ser utilizadas en el reconocimiento de vo
70
70
  cmu sphinx
71
71
  email:
72
72
  - manuel@bahamondez.com
73
- executables: []
73
+ executables:
74
+ - dictionary
74
75
  extensions: []
75
76
  extra_rdoc_files: []
76
77
  files:
@@ -85,6 +86,7 @@ files:
85
86
  - LICENSE.txt
86
87
  - README.md
87
88
  - Rakefile
89
+ - bin/dictionary
88
90
  - fonemas.gemspec
89
91
  - lib/fonemas.rb
90
92
  - lib/fonemas/version.rb