twkorean 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twkorean/twitter_korean_text.rb +1 -6
- data/lib/twkorean/version.rb +2 -2
- data/lib/twkorean.rb +0 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5b0224b2477336b22d92f4ad59a711b72cb3ed5
|
4
|
+
data.tar.gz: 96995f69e42be4eb7a21cdbcf63a8e3d5a6bd10c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 314d087f4e1d8eca9d14742ae601a844375526849eba96c563b266381370c6082a98939cbb27fe857e8275922560eaf3c24337a37714020d70bdee1bd62f84aa
|
7
|
+
data.tar.gz: 2e77c37daac91d552e40198221b94f26fd84d123737b61eb67367b454f14690a600051d480167b81424e76b9eb483dd8a03c6f4bc9b9f0f42adde4c6711355e4
|
@@ -1,15 +1,10 @@
|
|
1
|
-
# @name twkorean-ruby
|
2
|
-
# @author JunSangPil
|
3
|
-
# @version 0.0.4
|
4
|
-
# @url https://github.com/jun85664396/twkorean-ruby
|
5
|
-
# @license Apache License 2.0
|
6
1
|
module Twkorean
|
7
2
|
class TwitterKoreanText
|
8
3
|
|
9
4
|
attr_accessor :korean_processor
|
10
5
|
|
11
6
|
def initialize(normalization = true, stemming = true)
|
12
|
-
jars = Dir.glob(File.dirname(__FILE__)+"/../jars/*.jar").join(
|
7
|
+
jars = Dir.glob(File.dirname(__FILE__)+"/../jars/*.jar").join(File::PATH_SEPARATOR)
|
13
8
|
Rjb::load(jars, ['-Xmx512M'])
|
14
9
|
self.korean_processor = Rjb::import('com.twitter.penguin.korean.TwitterKoreanProcessorJava')
|
15
10
|
end
|
data/lib/twkorean/version.rb
CHANGED
data/lib/twkorean.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twkorean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JunSangPil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|