cabocha 0.69

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,12 @@
1
+ require 'mkmf'
2
+
3
+ cabocha_config = with_config('cabocha-config', 'cabocha-config')
4
+ enable_config('cabocha-config')
5
+
6
+ `cabocha-config --libs-only-l`.chomp.split.each { | lib |
7
+ have_library(lib)
8
+ }
9
+
10
+ $CFLAGS += ' ' + `#{cabocha_config} --cflags`.chomp
11
+
12
+ have_header('cabocha.h') && create_makefile('cabocha/CaboCha')
@@ -0,0 +1,2 @@
1
+ # require SWIG extension
2
+ require 'cabocha/CaboCha'
@@ -0,0 +1,22 @@
1
+ # encoding: utf-8
2
+
3
+ require 'spec_helper'
4
+
5
+ describe CaboCha do
6
+ it 'has a version number' do
7
+ expect(CaboCha::VERSION).not_to be nil
8
+ end
9
+ end
10
+
11
+ describe CaboCha::Parser do
12
+ before do
13
+ @parser = CaboCha::Parser.new
14
+ end
15
+
16
+ it 'has tree' do
17
+ sentence = "太郎はこの本を二郎を見た女性に渡した。"
18
+ tree = @parser.parse(sentence)
19
+
20
+ expect(tree.token(0).normalized_surface.force_encoding('utf-8')).to eq("太郎")
21
+ end
22
+ end
@@ -0,0 +1,4 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+
3
+ require 'pry-byebug'
4
+ require 'cabocha'
metadata ADDED
@@ -0,0 +1,129 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cabocha
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.69'
5
+ platform: ruby
6
+ authors:
7
+ - Yasuaki Uechi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.4'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake-compiler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry-byebug
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description:
84
+ email:
85
+ - uetchy@randompaper.co
86
+ executables: []
87
+ extensions:
88
+ - ext/cabocha/extconf.rb
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - Gemfile
94
+ - LICENSE
95
+ - README.md
96
+ - Rakefile
97
+ - cabocha.gemspec
98
+ - ext/cabocha/CaboCha_wrap.cpp
99
+ - ext/cabocha/extconf.rb
100
+ - lib/cabocha.rb
101
+ - spec/cabocha_spec.rb
102
+ - spec/spec_helper.rb
103
+ homepage: https://github.com/uetchy/cabocha-ruby
104
+ licenses:
105
+ - New BSD
106
+ metadata: {}
107
+ post_install_message:
108
+ rdoc_options: []
109
+ require_paths:
110
+ - lib
111
+ required_ruby_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ requirements: []
122
+ rubyforge_project:
123
+ rubygems_version: 2.4.5
124
+ signing_key:
125
+ specification_version: 4
126
+ summary: cabocha-ruby is a gem that provides Ruby bindings for CaboCha.
127
+ test_files:
128
+ - spec/cabocha_spec.rb
129
+ - spec/spec_helper.rb