rubyplb 0.2.93 → 0.2.94
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/rubyplb +3 -2
- data/lib/rubyplb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2daf4edf0935e34e3dcdc6341dfeefbfe5d0fd3
|
4
|
+
data.tar.gz: 014f4de770971f36d5a13b53176904f1a483a1c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab5e6ba09f3759156751d5f55c7f205f910ae4d3aabba79771ccfa1be4df92040b62d9fb2a67753a28d99022339bfa93a69456d64bd50ac9e149a2fd178ef4fb
|
7
|
+
data.tar.gz: d39ed47599ceedce917b722e1346ad915114084e12ce632314876fc9549d7c093dda53a681d15520eb7105f6467b687949e6083a594c4a4dd1cb6d7a4dd438ce
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.94
|
data/bin/rubyplb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- coding: utf-8 -*-
|
3
|
+
Encoding.default_external = "UTF-8"
|
3
4
|
|
4
5
|
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
|
5
6
|
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib/rubyplb')
|
@@ -82,7 +83,7 @@ if (File.exist?(filename2) && !opts[:sil])
|
|
82
83
|
end
|
83
84
|
|
84
85
|
begin
|
85
|
-
f = File.open(filename1, "r")
|
86
|
+
f = File.open(filename1, "r:UTF-8:UTF-8")
|
86
87
|
rescue => e
|
87
88
|
showerror("Input file does not exist.", 1)
|
88
89
|
end
|
@@ -96,7 +97,7 @@ begin
|
|
96
97
|
pl = PatLattice.new(opts)
|
97
98
|
sentences.each do |sentence|
|
98
99
|
pl.insert(sentence, !opts[:full])
|
99
|
-
|
100
|
+
end
|
100
101
|
# rescue => e
|
101
102
|
# showerror("Source data may have problems. Process aborted.", 1)
|
102
103
|
end
|
data/lib/rubyplb/version.rb
CHANGED