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 +8 -8
- data/bin/dictionary +33 -0
- data/lib/fonemas/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Yjc4YjBjY2YxM2E3MDBiOGZhZDBkOTFjNDZjM2M2NGE2ZGYzMmNlNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmI3NzEwZDkzNDNjMDkyNmUxNThkNjIxM2U0Mjg2NzNlOTE4OGFlYg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTAyZTAzMjljYjZjZGU2MGM2MmVmY2UyYzJjZDM4MjE0YTVlNWQ1MTk5N2E2
|
10
|
+
ZmMxMzRmMWY4YzE1MDczYmMxYmZiOTk5NzAxNzc2OTI3MjZkNDAzNGEwMzkw
|
11
|
+
NWJiYjVhNWY5ZTNmNjZjNWZjYWI2ODk1MTMxZTM2ZDM1NDRjNmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzgzYWJjNDNmOTBjODQwNzUyYjdkMzI4YzY1NzU3NjY2NzJiYTgxNTAyMmY0
|
14
|
+
ODE2OTQxOWZjMmVhM2FmOTlhYjk0YjBhZTg1YWU3ODE5ODA5NzJjZTE1MzVk
|
15
|
+
YjA3YmM5NzNiM2Y3NTcwMjU0MTY4YWM0YzAxYjEzMDU1NDVmNTE=
|
data/bin/dictionary
ADDED
@@ -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
|
data/lib/fonemas/version.rb
CHANGED
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.
|
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
|