sastrawi 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.gitignore +0 -0
- data/.travis.yml +4 -4
- data/CONTRIBUTING.md +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +1 -1
- data/README.md +8 -3
- data/Rakefile +0 -0
- data/_config.yml +0 -0
- data/bin/sastrawi +24 -0
- data/data/base-word.txt +0 -0
- data/lib/sastrawi/dictionary/array_dictionary.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule10.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule11.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule12.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule13a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule13b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule14.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule15a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule15b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule16.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule17a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule17b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule17c.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule17d.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule18a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule18b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule19.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule1a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule1b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule2.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule20.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule21a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule21b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule23.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule24.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule25.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule26a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule26b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule27.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule28a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule28b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule29.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule3.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule30a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule30b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule30c.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule31a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule31b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule32.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule34.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule35.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule36.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule37a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule37b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule38a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule38b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule39a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule39b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule4.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule40a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule40b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule41.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule42.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule5.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule6a.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule6b.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule7.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule8.rb +0 -0
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule9.rb +0 -0
- data/lib/sastrawi/morphology/invalid_affix_pair_specification.rb +0 -0
- data/lib/sastrawi/stemmer/cache/array_cache.rb +0 -0
- data/lib/sastrawi/stemmer/cached_stemmer.rb +0 -0
- data/lib/sastrawi/stemmer/confix_stripping/precedence_adjustment_specification.rb +0 -0
- data/lib/sastrawi/stemmer/context/context.rb +0 -0
- data/lib/sastrawi/stemmer/context/removal.rb +0 -0
- data/lib/sastrawi/stemmer/context/visitor/dont_stem_short_word.rb +0 -0
- data/lib/sastrawi/stemmer/context/visitor/prefix_disambiguator.rb +0 -0
- data/lib/sastrawi/stemmer/context/visitor/remove_derivational_suffix.rb +0 -0
- data/lib/sastrawi/stemmer/context/visitor/remove_inflectional_particle.rb +0 -0
- data/lib/sastrawi/stemmer/context/visitor/remove_inflectional_possessive_pronoun.rb +0 -0
- data/lib/sastrawi/stemmer/context/visitor/remove_plain_prefix.rb +0 -0
- data/lib/sastrawi/stemmer/context/visitor/visitor_provider.rb +0 -0
- data/lib/sastrawi/stemmer/filter/text_normalizer.rb +0 -0
- data/lib/sastrawi/stemmer/stemmer.rb +0 -0
- data/lib/sastrawi/stemmer/stemmer_factory.rb +0 -0
- data/lib/sastrawi/stop_word_remover/stop_word_remover.rb +0 -0
- data/lib/sastrawi/stop_word_remover/stop_word_remover_factory.rb +0 -0
- data/lib/sastrawi/version.rb +1 -1
- data/lib/sastrawi.rb +0 -0
- data/sastrawi.gemspec +5 -5
- metadata +13 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 206e7753efac6b56407dc0a8ad4b60d7408fbb230c87aa5fc2cd7108530763b3
|
|
4
|
+
data.tar.gz: b7a0ab4f3f928d4ca1544d85feb342927d9cbc5c0d07465a3c1422f8283eac77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f238b2fb7eea4622863b9a1cc6fc1c36cd2e5ef1876fc24f459f22ccc8bc0c4a25ab6e5bc90e5c339ca123b8a13dfa14c3c478712e83eca2c70d82838c76392e
|
|
7
|
+
data.tar.gz: 50e64d6808066115a54e5eb9fa3d786150cebf54c9042b9eb4268edd7a56cd0755ef4e116f663fa7990ea4dbfcc30e14cf1c5c2f317453e2289dc11644455383
|
data/.gitignore
CHANGED
|
File without changes
|
data/.travis.yml
CHANGED
data/CONTRIBUTING.md
CHANGED
|
File without changes
|
data/Gemfile
CHANGED
|
File without changes
|
data/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2016-
|
|
3
|
+
Copyright (c) 2016-2018 Andrias Meisyal
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Sastrawi Bindings for Ruby [](https://travis-ci.org/meisyal/sastrawi-ruby)
|
|
1
|
+
# Sastrawi Bindings for Ruby [](https://travis-ci.org/meisyal/sastrawi-ruby) [](https://badge.fury.io/rb/sastrawi)
|
|
2
2
|
|
|
3
3
|
sastrawi-ruby is Ruby bindings for [Sastrawi][sastrawi], a library which allows you
|
|
4
4
|
to stem words in Bahasa Indonesia. The original implementation of Sastrawi was
|
|
@@ -10,6 +10,10 @@ For instance, "menahan" has "tahan" as its base form. If you want to know how
|
|
|
10
10
|
stemming works, please read this [page][howstemmingworks] (in Bahasa Indonesia)
|
|
11
11
|
for further details.
|
|
12
12
|
|
|
13
|
+
## Demo
|
|
14
|
+
|
|
15
|
+
The demo version of sastrawi-ruby can be accessed [here][demo].
|
|
16
|
+
|
|
13
17
|
## Documentation
|
|
14
18
|
|
|
15
19
|
Documentation for this library is not available at this moment. But, you can
|
|
@@ -31,7 +35,7 @@ or you can install directly:
|
|
|
31
35
|
gem install sastrawi
|
|
32
36
|
|
|
33
37
|
Note that, this library requires Ruby. Ruby 1.9.3 or above should be installed
|
|
34
|
-
on your system. I would recommend to
|
|
38
|
+
on your system. I would recommend to use the stable versions.
|
|
35
39
|
|
|
36
40
|
## Usage
|
|
37
41
|
|
|
@@ -90,8 +94,9 @@ Attribution-NonCommercial-ShareAlike 3.0 Unported License][kateglolicense].
|
|
|
90
94
|
[sastrawi]: https://github.com/sastrawi/sastrawi
|
|
91
95
|
[stemmingwiki]: https://en.wikipedia.org/wiki/Stemming
|
|
92
96
|
[howstemmingworks]: https://github.com/sastrawi/sastrawi/wiki/Stemming-Bahasa-Indonesia
|
|
97
|
+
[demo]: https://sastrawi-ruby-demo.herokuapp.com
|
|
93
98
|
[documentation]: https://github.com/meisyal/sastrawi-ruby/wiki
|
|
94
|
-
[contributing]: https://github
|
|
99
|
+
[contributing]: https://github.com/meisyal/sastrawi-ruby/blob/master/CONTRIBUTING.md
|
|
95
100
|
[license]: https://github.com/meisyal/sastrawi-ruby/blob/master/LICENSE.txt
|
|
96
101
|
[kateglo]: http://kateglo.com
|
|
97
102
|
[kateglolicense]: https://creativecommons.org/licenses/by-nc-sa/3.0/
|
data/Rakefile
CHANGED
|
File without changes
|
data/_config.yml
CHANGED
|
File without changes
|
data/bin/sastrawi
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require 'sastrawi'
|
|
4
|
+
|
|
5
|
+
# usage: $ sastrawi word/sentence
|
|
6
|
+
if ARGV.empty?
|
|
7
|
+
puts '--------------- sastrawi: ERROR ---------------'
|
|
8
|
+
puts 'Usage: Please specify a word or sentence to be stemmed.'
|
|
9
|
+
puts ' sastrawi word/sentence'
|
|
10
|
+
puts 'Example:'
|
|
11
|
+
puts ' sastrawi mengundang'
|
|
12
|
+
puts ' sastrawi Perekonomian Indonesia sedang dalam pertumbuhan yang membanggakan.'
|
|
13
|
+
else
|
|
14
|
+
stemmer_factory = Sastrawi::Stemmer::StemmerFactory.new
|
|
15
|
+
stemmer = stemmer_factory.create_stemmer
|
|
16
|
+
|
|
17
|
+
words = []
|
|
18
|
+
|
|
19
|
+
ARGV.each { |arg| words << arg }
|
|
20
|
+
|
|
21
|
+
sentence = words.join(' ')
|
|
22
|
+
|
|
23
|
+
puts stemmer.stem(sentence)
|
|
24
|
+
end
|
data/data/base-word.txt
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/sastrawi/version.rb
CHANGED
data/lib/sastrawi.rb
CHANGED
|
File without changes
|
data/sastrawi.gemspec
CHANGED
|
@@ -16,11 +16,11 @@ Gem::Specification.new do |spec|
|
|
|
16
16
|
spec.license = "MIT"
|
|
17
17
|
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
19
|
-
spec.bindir = "
|
|
20
|
-
spec.executables = spec.files.grep(%r{^
|
|
19
|
+
spec.bindir = "bin"
|
|
20
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
21
21
|
spec.require_paths = ["lib"]
|
|
22
22
|
|
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.
|
|
24
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
|
25
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.16.1"
|
|
24
|
+
spec.add_development_dependency "rake", "~> 10.5.0"
|
|
25
|
+
spec.add_development_dependency "rspec", "~> 3.7.0"
|
|
26
26
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sastrawi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrias Meisyal
|
|
8
8
|
autorequire:
|
|
9
|
-
bindir:
|
|
9
|
+
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -16,46 +16,47 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 1.16.1
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
26
|
+
version: 1.16.1
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 10.5.0
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
40
|
+
version: 10.5.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rspec
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version:
|
|
47
|
+
version: 3.7.0
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
54
|
+
version: 3.7.0
|
|
55
55
|
description: A Ruby library which allows you to stem words in Bahasa Indonesia.
|
|
56
56
|
email:
|
|
57
57
|
- andriasonline@gmail.com
|
|
58
|
-
executables:
|
|
58
|
+
executables:
|
|
59
|
+
- sastrawi
|
|
59
60
|
extensions: []
|
|
60
61
|
extra_rdoc_files: []
|
|
61
62
|
files:
|
|
@@ -67,6 +68,7 @@ files:
|
|
|
67
68
|
- README.md
|
|
68
69
|
- Rakefile
|
|
69
70
|
- _config.yml
|
|
71
|
+
- bin/sastrawi
|
|
70
72
|
- data/base-word.txt
|
|
71
73
|
- lib/sastrawi.rb
|
|
72
74
|
- lib/sastrawi/dictionary/array_dictionary.rb
|
|
@@ -168,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
168
170
|
version: '0'
|
|
169
171
|
requirements: []
|
|
170
172
|
rubyforge_project:
|
|
171
|
-
rubygems_version: 2.
|
|
173
|
+
rubygems_version: 2.7.6
|
|
172
174
|
signing_key:
|
|
173
175
|
specification_version: 4
|
|
174
176
|
summary: Ruby bindings for Sastrawi
|