cppjieba_rb 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +21 -0
  3. data/.github/workflows/linting.yml +30 -0
  4. data/.github/workflows/release.yml +42 -0
  5. data/.github/workflows/tests.yml +47 -0
  6. data/.gitignore +1 -0
  7. data/.rubocop.yml +45 -0
  8. data/.ruby-version +1 -0
  9. data/.yamllint +35 -0
  10. data/CHANGELOG.md +17 -0
  11. data/Gemfile +11 -0
  12. data/README.md +5 -5
  13. data/Rakefile +16 -7
  14. data/cppjieba_rb.gemspec +46 -33
  15. data/ext/cppjieba/.github/workflows/cmake.yml +52 -0
  16. data/ext/cppjieba/.github/workflows/stale-issues.yml +24 -0
  17. data/ext/cppjieba/.gitmodules +3 -0
  18. data/ext/cppjieba/{ChangeLog.md → CHANGELOG.md} +50 -1
  19. data/ext/cppjieba/CMakeLists.txt +11 -14
  20. data/ext/cppjieba/LICENSE +20 -0
  21. data/ext/cppjieba/README.md +9 -18
  22. data/ext/cppjieba/deps/limonp/.github/workflows/cmake.yml +43 -0
  23. data/ext/cppjieba/deps/limonp/.gitignore +9 -0
  24. data/ext/cppjieba/deps/limonp/CHANGELOG.md +160 -0
  25. data/ext/cppjieba/deps/limonp/CMakeLists.txt +61 -0
  26. data/ext/cppjieba/deps/limonp/LICENSE +20 -0
  27. data/ext/cppjieba/deps/limonp/README.md +38 -0
  28. data/ext/cppjieba/deps/limonp/{LocalVector.hpp → include/limonp/LocalVector.hpp} +3 -3
  29. data/ext/cppjieba/deps/limonp/{Logging.hpp → include/limonp/Logging.hpp} +17 -3
  30. data/ext/cppjieba/deps/limonp/{StringUtil.hpp → include/limonp/StringUtil.hpp} +31 -10
  31. data/ext/cppjieba/deps/limonp/test/CMakeLists.txt +8 -0
  32. data/ext/cppjieba/deps/limonp/test/demo.cpp +40 -0
  33. data/ext/cppjieba/deps/limonp/test/testdata/1.conf +5 -0
  34. data/ext/cppjieba/deps/limonp/test/testdata/StdExtension.data +3 -0
  35. data/ext/cppjieba/deps/limonp/test/testdata/dict.gbk +50 -0
  36. data/ext/cppjieba/deps/limonp/test/testdata/dict.utf8 +50 -0
  37. data/ext/cppjieba/deps/limonp/test/testdata/io_testfile +2 -0
  38. data/ext/cppjieba/deps/limonp/test/testdata/jieba.dict.0.1.utf8 +93 -0
  39. data/ext/cppjieba/deps/limonp/test/testdata/jieba.dict.0.utf8 +93 -0
  40. data/ext/cppjieba/deps/limonp/test/testdata/jieba.dict.1.utf8 +67 -0
  41. data/ext/cppjieba/deps/limonp/test/testdata/jieba.dict.2.utf8 +64 -0
  42. data/ext/cppjieba/deps/limonp/test/unittest/CMakeLists.txt +30 -0
  43. data/ext/cppjieba/deps/limonp/test/unittest/TArgvContext.cpp +16 -0
  44. data/ext/cppjieba/deps/limonp/test/unittest/TCastFloat.cpp +19 -0
  45. data/ext/cppjieba/deps/limonp/test/unittest/TClosure.cpp +85 -0
  46. data/ext/cppjieba/deps/limonp/test/unittest/TColorPrint.cpp +20 -0
  47. data/ext/cppjieba/deps/limonp/test/unittest/TConfig.cpp +17 -0
  48. data/ext/cppjieba/deps/limonp/test/unittest/TLocalVector.cpp +41 -0
  49. data/ext/cppjieba/deps/limonp/test/unittest/TLogging.cpp +12 -0
  50. data/ext/cppjieba/deps/limonp/test/unittest/TStdExtension.cpp +95 -0
  51. data/ext/cppjieba/deps/limonp/test/unittest/TStringUtil.cpp +183 -0
  52. data/ext/cppjieba/include/cppjieba/DictTrie.hpp +9 -0
  53. data/ext/cppjieba/include/cppjieba/Jieba.hpp +4 -0
  54. data/ext/cppjieba/include/cppjieba/Trie.hpp +27 -1
  55. data/ext/cppjieba/test/CMakeLists.txt +4 -3
  56. data/ext/cppjieba/test/unittest/CMakeLists.txt +16 -7
  57. data/ext/cppjieba_rb/extconf.rb +11 -6
  58. data/lib/cppjieba_rb/segment.rb +4 -1
  59. data/lib/cppjieba_rb/version.rb +3 -1
  60. data/lib/cppjieba_rb.rb +12 -5
  61. data/test/test_keyword.rb +8 -8
  62. data/test/test_segment.rb +14 -10
  63. data/test/test_stop_word_filter.rb +5 -3
  64. data/test/test_tagging.rb +5 -2
  65. metadata +63 -140
  66. data/.travis.yml +0 -30
  67. data/ext/cppjieba/.travis.yml +0 -21
  68. data/ext/cppjieba/README_EN.md +0 -115
  69. data/ext/cppjieba/appveyor.yml +0 -32
  70. data/ext/cppjieba/deps/CMakeLists.txt +0 -1
  71. data/ext/cppjieba/deps/gtest/CMakeLists.txt +0 -5
  72. data/ext/cppjieba/deps/gtest/include/gtest/gtest-death-test.h +0 -283
  73. data/ext/cppjieba/deps/gtest/include/gtest/gtest-message.h +0 -230
  74. data/ext/cppjieba/deps/gtest/include/gtest/gtest-param-test.h +0 -1421
  75. data/ext/cppjieba/deps/gtest/include/gtest/gtest-param-test.h.pump +0 -487
  76. data/ext/cppjieba/deps/gtest/include/gtest/gtest-printers.h +0 -796
  77. data/ext/cppjieba/deps/gtest/include/gtest/gtest-spi.h +0 -232
  78. data/ext/cppjieba/deps/gtest/include/gtest/gtest-test-part.h +0 -176
  79. data/ext/cppjieba/deps/gtest/include/gtest/gtest-typed-test.h +0 -259
  80. data/ext/cppjieba/deps/gtest/include/gtest/gtest.h +0 -2155
  81. data/ext/cppjieba/deps/gtest/include/gtest/gtest_pred_impl.h +0 -358
  82. data/ext/cppjieba/deps/gtest/include/gtest/gtest_prod.h +0 -58
  83. data/ext/cppjieba/deps/gtest/include/gtest/internal/gtest-death-test-internal.h +0 -308
  84. data/ext/cppjieba/deps/gtest/include/gtest/internal/gtest-filepath.h +0 -210
  85. data/ext/cppjieba/deps/gtest/include/gtest/internal/gtest-internal.h +0 -1226
  86. data/ext/cppjieba/deps/gtest/include/gtest/internal/gtest-linked_ptr.h +0 -233
  87. data/ext/cppjieba/deps/gtest/include/gtest/internal/gtest-param-util-generated.h +0 -4822
  88. data/ext/cppjieba/deps/gtest/include/gtest/internal/gtest-param-util-generated.h.pump +0 -301
  89. data/ext/cppjieba/deps/gtest/include/gtest/internal/gtest-param-util.h +0 -619
  90. data/ext/cppjieba/deps/gtest/include/gtest/internal/gtest-port.h +0 -1788
  91. data/ext/cppjieba/deps/gtest/include/gtest/internal/gtest-string.h +0 -350
  92. data/ext/cppjieba/deps/gtest/include/gtest/internal/gtest-tuple.h +0 -968
  93. data/ext/cppjieba/deps/gtest/include/gtest/internal/gtest-tuple.h.pump +0 -336
  94. data/ext/cppjieba/deps/gtest/include/gtest/internal/gtest-type-util.h +0 -3330
  95. data/ext/cppjieba/deps/gtest/include/gtest/internal/gtest-type-util.h.pump +0 -296
  96. data/ext/cppjieba/deps/gtest/src/.deps/gtest-all.Plo +0 -681
  97. data/ext/cppjieba/deps/gtest/src/.deps/gtest_main.Plo +0 -509
  98. data/ext/cppjieba/deps/gtest/src/.dirstamp +0 -0
  99. data/ext/cppjieba/deps/gtest/src/gtest-all.cc +0 -48
  100. data/ext/cppjieba/deps/gtest/src/gtest-death-test.cc +0 -1234
  101. data/ext/cppjieba/deps/gtest/src/gtest-filepath.cc +0 -380
  102. data/ext/cppjieba/deps/gtest/src/gtest-internal-inl.h +0 -1038
  103. data/ext/cppjieba/deps/gtest/src/gtest-port.cc +0 -746
  104. data/ext/cppjieba/deps/gtest/src/gtest-printers.cc +0 -356
  105. data/ext/cppjieba/deps/gtest/src/gtest-test-part.cc +0 -110
  106. data/ext/cppjieba/deps/gtest/src/gtest-typed-test.cc +0 -110
  107. data/ext/cppjieba/deps/gtest/src/gtest.cc +0 -4898
  108. data/ext/cppjieba/deps/limonp/BlockingQueue.hpp +0 -49
  109. data/ext/cppjieba/deps/limonp/BoundedBlockingQueue.hpp +0 -67
  110. data/ext/cppjieba/deps/limonp/BoundedQueue.hpp +0 -65
  111. data/ext/cppjieba/deps/limonp/FileLock.hpp +0 -74
  112. data/ext/cppjieba/deps/limonp/Md5.hpp +0 -411
  113. data/ext/cppjieba/deps/limonp/MutexLock.hpp +0 -51
  114. data/ext/cppjieba/deps/limonp/Thread.hpp +0 -44
  115. data/ext/cppjieba/deps/limonp/ThreadPool.hpp +0 -86
  116. data/ext/cppjieba/test/demo.cpp +0 -80
  117. /data/ext/cppjieba/deps/{gtest/src/.deps/.dirstamp → limonp/.gitmodules} +0 -0
  118. /data/ext/cppjieba/deps/limonp/{ArgvContext.hpp → include/limonp/ArgvContext.hpp} +0 -0
  119. /data/ext/cppjieba/deps/limonp/{Closure.hpp → include/limonp/Closure.hpp} +0 -0
  120. /data/ext/cppjieba/deps/limonp/{Colors.hpp → include/limonp/Colors.hpp} +0 -0
  121. /data/ext/cppjieba/deps/limonp/{Condition.hpp → include/limonp/Condition.hpp} +0 -0
  122. /data/ext/cppjieba/deps/limonp/{Config.hpp → include/limonp/Config.hpp} +0 -0
  123. /data/ext/cppjieba/deps/limonp/{ForcePublic.hpp → include/limonp/ForcePublic.hpp} +0 -0
  124. /data/ext/cppjieba/deps/limonp/{NonCopyable.hpp → include/limonp/NonCopyable.hpp} +0 -0
  125. /data/ext/cppjieba/deps/limonp/{StdExtension.hpp → include/limonp/StdExtension.hpp} +0 -0
  126. /data/ext/cppjieba/deps/{gtest/src/gtest_main.cc → limonp/test/unittest/gtest_main.cpp} +0 -0
metadata CHANGED
@@ -1,159 +1,86 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cppjieba_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erick Guan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-22 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: '2.2'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 2.2.10
23
- type: :development
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '2.2'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 2.2.10
33
- - !ruby/object:Gem::Dependency
34
- name: rake
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '13'
40
- type: :development
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '13'
47
- - !ruby/object:Gem::Dependency
48
- name: rake-compiler
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '1.1'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '1.1'
61
- - !ruby/object:Gem::Dependency
62
- name: minitest
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '5.14'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '5.14'
11
+ date: 2024-09-21 00:00:00.000000000 Z
12
+ dependencies: []
75
13
  description: cppjieba binding for ruby. Mainly used by Discourse.
76
14
  email:
77
- - fantasticfears@gmail.com
15
+ - erickguanst@gmail.com
78
16
  executables: []
79
17
  extensions:
80
18
  - ext/cppjieba_rb/extconf.rb
81
19
  extra_rdoc_files: []
82
20
  files:
21
+ - ".editorconfig"
22
+ - ".github/workflows/linting.yml"
23
+ - ".github/workflows/release.yml"
24
+ - ".github/workflows/tests.yml"
83
25
  - ".gitignore"
84
26
  - ".gitmodules"
85
- - ".travis.yml"
27
+ - ".rubocop.yml"
28
+ - ".ruby-version"
29
+ - ".yamllint"
30
+ - CHANGELOG.md
86
31
  - Gemfile
87
32
  - LICENSE.txt
88
33
  - README.md
89
34
  - Rakefile
90
35
  - cppjieba_rb.gemspec
36
+ - ext/cppjieba/.github/workflows/cmake.yml
37
+ - ext/cppjieba/.github/workflows/stale-issues.yml
91
38
  - ext/cppjieba/.gitignore
92
- - ext/cppjieba/.travis.yml
39
+ - ext/cppjieba/.gitmodules
40
+ - ext/cppjieba/CHANGELOG.md
93
41
  - ext/cppjieba/CMakeLists.txt
94
- - ext/cppjieba/ChangeLog.md
42
+ - ext/cppjieba/LICENSE
95
43
  - ext/cppjieba/README.md
96
- - ext/cppjieba/README_EN.md
97
- - ext/cppjieba/appveyor.yml
98
- - ext/cppjieba/deps/CMakeLists.txt
99
- - ext/cppjieba/deps/gtest/CMakeLists.txt
100
- - ext/cppjieba/deps/gtest/include/gtest/gtest-death-test.h
101
- - ext/cppjieba/deps/gtest/include/gtest/gtest-message.h
102
- - ext/cppjieba/deps/gtest/include/gtest/gtest-param-test.h
103
- - ext/cppjieba/deps/gtest/include/gtest/gtest-param-test.h.pump
104
- - ext/cppjieba/deps/gtest/include/gtest/gtest-printers.h
105
- - ext/cppjieba/deps/gtest/include/gtest/gtest-spi.h
106
- - ext/cppjieba/deps/gtest/include/gtest/gtest-test-part.h
107
- - ext/cppjieba/deps/gtest/include/gtest/gtest-typed-test.h
108
- - ext/cppjieba/deps/gtest/include/gtest/gtest.h
109
- - ext/cppjieba/deps/gtest/include/gtest/gtest_pred_impl.h
110
- - ext/cppjieba/deps/gtest/include/gtest/gtest_prod.h
111
- - ext/cppjieba/deps/gtest/include/gtest/internal/gtest-death-test-internal.h
112
- - ext/cppjieba/deps/gtest/include/gtest/internal/gtest-filepath.h
113
- - ext/cppjieba/deps/gtest/include/gtest/internal/gtest-internal.h
114
- - ext/cppjieba/deps/gtest/include/gtest/internal/gtest-linked_ptr.h
115
- - ext/cppjieba/deps/gtest/include/gtest/internal/gtest-param-util-generated.h
116
- - ext/cppjieba/deps/gtest/include/gtest/internal/gtest-param-util-generated.h.pump
117
- - ext/cppjieba/deps/gtest/include/gtest/internal/gtest-param-util.h
118
- - ext/cppjieba/deps/gtest/include/gtest/internal/gtest-port.h
119
- - ext/cppjieba/deps/gtest/include/gtest/internal/gtest-string.h
120
- - ext/cppjieba/deps/gtest/include/gtest/internal/gtest-tuple.h
121
- - ext/cppjieba/deps/gtest/include/gtest/internal/gtest-tuple.h.pump
122
- - ext/cppjieba/deps/gtest/include/gtest/internal/gtest-type-util.h
123
- - ext/cppjieba/deps/gtest/include/gtest/internal/gtest-type-util.h.pump
124
- - ext/cppjieba/deps/gtest/src/.deps/.dirstamp
125
- - ext/cppjieba/deps/gtest/src/.deps/gtest-all.Plo
126
- - ext/cppjieba/deps/gtest/src/.deps/gtest_main.Plo
127
- - ext/cppjieba/deps/gtest/src/.dirstamp
128
- - ext/cppjieba/deps/gtest/src/gtest-all.cc
129
- - ext/cppjieba/deps/gtest/src/gtest-death-test.cc
130
- - ext/cppjieba/deps/gtest/src/gtest-filepath.cc
131
- - ext/cppjieba/deps/gtest/src/gtest-internal-inl.h
132
- - ext/cppjieba/deps/gtest/src/gtest-port.cc
133
- - ext/cppjieba/deps/gtest/src/gtest-printers.cc
134
- - ext/cppjieba/deps/gtest/src/gtest-test-part.cc
135
- - ext/cppjieba/deps/gtest/src/gtest-typed-test.cc
136
- - ext/cppjieba/deps/gtest/src/gtest.cc
137
- - ext/cppjieba/deps/gtest/src/gtest_main.cc
138
- - ext/cppjieba/deps/limonp/ArgvContext.hpp
139
- - ext/cppjieba/deps/limonp/BlockingQueue.hpp
140
- - ext/cppjieba/deps/limonp/BoundedBlockingQueue.hpp
141
- - ext/cppjieba/deps/limonp/BoundedQueue.hpp
142
- - ext/cppjieba/deps/limonp/Closure.hpp
143
- - ext/cppjieba/deps/limonp/Colors.hpp
144
- - ext/cppjieba/deps/limonp/Condition.hpp
145
- - ext/cppjieba/deps/limonp/Config.hpp
146
- - ext/cppjieba/deps/limonp/FileLock.hpp
147
- - ext/cppjieba/deps/limonp/ForcePublic.hpp
148
- - ext/cppjieba/deps/limonp/LocalVector.hpp
149
- - ext/cppjieba/deps/limonp/Logging.hpp
150
- - ext/cppjieba/deps/limonp/Md5.hpp
151
- - ext/cppjieba/deps/limonp/MutexLock.hpp
152
- - ext/cppjieba/deps/limonp/NonCopyable.hpp
153
- - ext/cppjieba/deps/limonp/StdExtension.hpp
154
- - ext/cppjieba/deps/limonp/StringUtil.hpp
155
- - ext/cppjieba/deps/limonp/Thread.hpp
156
- - ext/cppjieba/deps/limonp/ThreadPool.hpp
44
+ - ext/cppjieba/deps/limonp/.github/workflows/cmake.yml
45
+ - ext/cppjieba/deps/limonp/.gitignore
46
+ - ext/cppjieba/deps/limonp/.gitmodules
47
+ - ext/cppjieba/deps/limonp/CHANGELOG.md
48
+ - ext/cppjieba/deps/limonp/CMakeLists.txt
49
+ - ext/cppjieba/deps/limonp/LICENSE
50
+ - ext/cppjieba/deps/limonp/README.md
51
+ - ext/cppjieba/deps/limonp/include/limonp/ArgvContext.hpp
52
+ - ext/cppjieba/deps/limonp/include/limonp/Closure.hpp
53
+ - ext/cppjieba/deps/limonp/include/limonp/Colors.hpp
54
+ - ext/cppjieba/deps/limonp/include/limonp/Condition.hpp
55
+ - ext/cppjieba/deps/limonp/include/limonp/Config.hpp
56
+ - ext/cppjieba/deps/limonp/include/limonp/ForcePublic.hpp
57
+ - ext/cppjieba/deps/limonp/include/limonp/LocalVector.hpp
58
+ - ext/cppjieba/deps/limonp/include/limonp/Logging.hpp
59
+ - ext/cppjieba/deps/limonp/include/limonp/NonCopyable.hpp
60
+ - ext/cppjieba/deps/limonp/include/limonp/StdExtension.hpp
61
+ - ext/cppjieba/deps/limonp/include/limonp/StringUtil.hpp
62
+ - ext/cppjieba/deps/limonp/test/CMakeLists.txt
63
+ - ext/cppjieba/deps/limonp/test/demo.cpp
64
+ - ext/cppjieba/deps/limonp/test/testdata/1.conf
65
+ - ext/cppjieba/deps/limonp/test/testdata/StdExtension.data
66
+ - ext/cppjieba/deps/limonp/test/testdata/dict.gbk
67
+ - ext/cppjieba/deps/limonp/test/testdata/dict.utf8
68
+ - ext/cppjieba/deps/limonp/test/testdata/io_testfile
69
+ - ext/cppjieba/deps/limonp/test/testdata/jieba.dict.0.1.utf8
70
+ - ext/cppjieba/deps/limonp/test/testdata/jieba.dict.0.utf8
71
+ - ext/cppjieba/deps/limonp/test/testdata/jieba.dict.1.utf8
72
+ - ext/cppjieba/deps/limonp/test/testdata/jieba.dict.2.utf8
73
+ - ext/cppjieba/deps/limonp/test/unittest/CMakeLists.txt
74
+ - ext/cppjieba/deps/limonp/test/unittest/TArgvContext.cpp
75
+ - ext/cppjieba/deps/limonp/test/unittest/TCastFloat.cpp
76
+ - ext/cppjieba/deps/limonp/test/unittest/TClosure.cpp
77
+ - ext/cppjieba/deps/limonp/test/unittest/TColorPrint.cpp
78
+ - ext/cppjieba/deps/limonp/test/unittest/TConfig.cpp
79
+ - ext/cppjieba/deps/limonp/test/unittest/TLocalVector.cpp
80
+ - ext/cppjieba/deps/limonp/test/unittest/TLogging.cpp
81
+ - ext/cppjieba/deps/limonp/test/unittest/TStdExtension.cpp
82
+ - ext/cppjieba/deps/limonp/test/unittest/TStringUtil.cpp
83
+ - ext/cppjieba/deps/limonp/test/unittest/gtest_main.cpp
157
84
  - ext/cppjieba/dict/README.md
158
85
  - ext/cppjieba/dict/hmm_model.utf8
159
86
  - ext/cppjieba/dict/idf.utf8
@@ -181,7 +108,6 @@ files:
181
108
  - ext/cppjieba/include/cppjieba/Trie.hpp
182
109
  - ext/cppjieba/include/cppjieba/Unicode.hpp
183
110
  - ext/cppjieba/test/CMakeLists.txt
184
- - ext/cppjieba/test/demo.cpp
185
111
  - ext/cppjieba/test/load_test.cpp
186
112
  - ext/cppjieba/test/testdata/curl.res
187
113
  - ext/cppjieba/test/testdata/extra_dict/jieba.dict.small.utf8
@@ -221,10 +147,11 @@ files:
221
147
  - test/test_segment.rb
222
148
  - test/test_stop_word_filter.rb
223
149
  - test/test_tagging.rb
224
- homepage: https://github.com/fantasticfears/cppjieba_rb
150
+ homepage: https://github.com/erickguan/cppjieba_rb
225
151
  licenses:
226
152
  - MIT
227
- metadata: {}
153
+ metadata:
154
+ rubygems_mfa_required: 'true'
228
155
  post_install_message:
229
156
  rdoc_options: []
230
157
  require_paths:
@@ -233,19 +160,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
233
160
  requirements:
234
161
  - - ">="
235
162
  - !ruby/object:Gem::Version
236
- version: 2.3.0
163
+ version: 2.7.0
237
164
  required_rubygems_version: !ruby/object:Gem::Requirement
238
165
  requirements:
239
166
  - - ">="
240
167
  - !ruby/object:Gem::Version
241
168
  version: '0'
242
169
  requirements: []
243
- rubygems_version: 3.0.3
170
+ rubygems_version: 3.5.16
244
171
  signing_key:
245
172
  specification_version: 4
246
173
  summary: cppjieba binding for ruby
247
- test_files:
248
- - test/test_keyword.rb
249
- - test/test_segment.rb
250
- - test/test_stop_word_filter.rb
251
- - test/test_tagging.rb
174
+ test_files: []
data/.travis.yml DELETED
@@ -1,30 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3
4
- - 2.4
5
- - 2.5
6
- - 2.6
7
- - 2.7
8
- - 3.0
9
- - ruby-head
10
- - rbx-2
11
-
12
- before_install:
13
- - gem install bundler
14
-
15
- before_script: rake compile
16
-
17
- matrix:
18
- allow_failures:
19
- - rvm: ruby-head
20
- - rvm: rbx-2
21
-
22
-
23
- addons:
24
- apt:
25
- sources:
26
- - ubuntu-toolchain-r-test
27
- packages:
28
- - gcc-4.9
29
- - g++-4.9
30
-
@@ -1,21 +0,0 @@
1
- language: cpp
2
- before_install:
3
- - if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install cmake; fi
4
- script:
5
- - mkdir build
6
- - cd build
7
- - cmake ..
8
- - make
9
- - make test
10
- os:
11
- - linux
12
- - osx
13
- compiler:
14
- - clang
15
- - gcc
16
- notifications:
17
- recipients:
18
- - i@yanyiwu.com
19
- email:
20
- on_success: change
21
- on_failure: always
@@ -1,115 +0,0 @@
1
- # CppJieba [简体中文](README.md)
2
-
3
- [![Build Status](https://travis-ci.org/yanyiwu/cppjieba.png?branch=master)](https://travis-ci.org/yanyiwu/cppjieba)
4
- [![Author](https://img.shields.io/badge/author-@yanyiwu-blue.svg?style=flat)](http://yanyiwu.com/)
5
- [![Platform](https://img.shields.io/badge/platform-Linux,%20OS%20X,%20Windows-green.svg?style=flat)](https://github.com/yanyiwu/cppjieba)
6
- [![Performance](https://img.shields.io/badge/performance-excellent-brightgreen.svg?style=flat)](http://yanyiwu.com/work/2015/06/14/jieba-series-performance-test.html)
7
- [![License](https://img.shields.io/badge/license-MIT-yellow.svg?style=flat)](http://yanyiwu.mit-license.org)
8
- [![Build status](https://ci.appveyor.com/api/projects/status/wl30fjnm2rhft6ta/branch/master?svg=true)](https://ci.appveyor.com/project/yanyiwu/cppjieba/branch/master)
9
-
10
- [![logo](http://7viirv.com1.z0.glb.clouddn.com/CppJiebaLogo-v1.png)](https://github.com/yanyiwu/cppjieba)
11
-
12
- ## Introduction
13
-
14
- The Jieba Chinese Word Segmentation Implemented By C++ .
15
-
16
- ## Usage
17
-
18
- ### Dependencies
19
-
20
- + `g++ (version >= 4.1 is recommended) or clang++`;
21
- + `cmake (version >= 2.6 is recommended)`;
22
-
23
- ### Download & Compile
24
-
25
- ```sh
26
- git clone --depth=10 --branch=master git://github.com/yanyiwu/cppjieba.git
27
- cd cppjieba
28
- mkdir build
29
- cd build
30
- cmake ..
31
- make
32
- ```
33
-
34
- ### Unit Testing
35
-
36
- ```
37
- make test
38
- ```
39
-
40
- ## Demo
41
-
42
- ```
43
- ./demo
44
- ```
45
-
46
- Output:
47
-
48
- ```
49
- [demo] Cut With HMM
50
- 他/来到/了/网易/杭研/大厦
51
- [demo] Cut Without HMM
52
- 他/来到/了/网易/杭/研/大厦
53
- 我来到北京清华大学
54
- [demo] CutAll
55
- 我/来到/北京/清华/清华大学/华大/大学
56
- 小明硕士毕业于中国科学院计算所,后在日本京都大学深造
57
- [demo] CutForSearch
58
- 小明/硕士/毕业/于/中国/科学/学院/科学院/中国科学院/计算/计算所/,/后/在/日本/京都/大学/日本京都大学/深造
59
- [demo] Insert User Word
60
- 男默/女泪
61
- 男默女泪
62
- [demo] CutForSearch Word With Offset
63
- [{"word": "小明", "offset": 0}, {"word": "硕士", "offset": 6}, {"word": "毕业", "offset": 12}, {"word": "于", "offset": 18}, {"word": "中国", "offset": 21}, {"word": "科学", "offset": 27}, {"word": "学院", "offset": 30}, {"word": "科学院", "offset": 27}, {"word": "中国科学院", "offset": 21}, {"word": "计算", "offset": 36}, {"word": "计算所", "offset": 36}, {"word": ",", "offset": 45}, {"word": "后", "offset": 48}, {"word": "在", "offset": 51}, {"word": "日本", "offset": 54}, {"word": "京都", "offset": 60}, {"word": "大学", "offset": 66}, {"word": "日本京都大学", "offset": 54}, {"word": "深造", "offset": 72}]
64
- [demo] Tagging
65
- 我是拖拉机学院手扶拖拉机专业的。不用多久,我就会升职加薪,当上CEO,走上人生巅峰。
66
- [我:r, 是:v, 拖拉机:n, 学院:n, 手扶拖拉机:n, 专业:n, 的:uj, 。:x, 不用:v, 多久:m, ,:x, 我:r, 就:d, 会:v, 升职:v, 加薪:nr, ,:x, 当上:t, CEO:eng, ,:x, 走上:v, 人生:n, 巅峰:n, 。:x]
67
- [demo] Keyword Extraction
68
- 我是拖拉机学院手扶拖拉机专业的。不用多久,我就会升职加薪,当上CEO,走上人生巅峰。
69
- [{"word": "CEO", "offset": [93], "weight": 11.7392}, {"word": "升职", "offset": [72], "weight": 10.8562}, {"word": "加薪", "offset": [78], "weight": 10.6426}, {"word": "手扶拖拉机", "offset": [21], "weight": 10.0089}, {"word": "巅峰", "offset": [111], "weight": 9.49396}]
70
- ```
71
-
72
- Please see details in `test/demo.cpp`.
73
-
74
- ## Cases
75
-
76
- + [GoJieba]
77
- + [NodeJieba]
78
- + [simhash]
79
- + [exjieba]
80
- + [jiebaR]
81
- + [cjieba]
82
- + [jieba_rb]
83
- + [iosjieba]
84
- + [SqlJieba]
85
- + [pg_jieba]
86
- + [ngx_http_cppjieba_module]
87
- + [gitbook-plugin-search-pro]
88
- + [cppjieba-server]
89
- + [perl5-jieba]
90
- + [jieba-dlang]
91
-
92
- ## Contact
93
-
94
- + Email: `i@yanyiwu.com`
95
- + QQ: 64162451
96
- + WeChat: ![image](http://7viirv.com1.z0.glb.clouddn.com/5a7d1b5c0d_yanyiwu_personal_qrcodes.jpg)
97
-
98
- [GoJieba]:https://github.com/yanyiwu/gojieba
99
- [CppJieba]:https://github.com/yanyiwu/cppjieba
100
- [jannson]:https://github.com/jannson
101
- [cppjiebapy]:https://github.com/jannson/cppjiebapy
102
- [cppjiebapy_discussion]:https://github.com/yanyiwu/cppjieba/issues/1
103
- [NodeJieba]:https://github.com/yanyiwu/nodejieba
104
- [jiebaR]:https://github.com/qinwf/jiebaR
105
- [simhash]:https://github.com/yanyiwu/simhash
106
- [exjieba]:https://github.com/falood/exjieba
107
- [cjieba]:http://github.com/yanyiwu/cjieba
108
- [jieba_rb]:https://github.com/altkatz/jieba_rb
109
- [iosjieba]:https://github.com/yanyiwu/iosjieba
110
- [SqlJieba]:https://github.com/yanyiwu/sqljieba
111
- [pg_jieba]:https://github.com/jaiminpan/pg_jieba
112
- [gitbook-plugin-search-pro]:https://plugins.gitbook.com/plugin/search-pro
113
- [cppjieba-server]:https://github.com/yanyiwu/cppjieba-server
114
- [perl5-jieba]:https://metacpan.org/pod/distribution/Lingua-ZH-Jieba/lib/Lingua/ZH/Jieba.pod
115
- [jieba-dlang]:https://github.com/shove70/jieba
@@ -1,32 +0,0 @@
1
- os: Visual Studio 2015
2
-
3
- platform: x64
4
-
5
- # clone directory
6
- clone_folder: c:\projects\cppjieba
7
-
8
- # scripts to run before build
9
- before_build:
10
- - echo Running cmake...
11
- - cd c:\projects\cppjieba
12
- - cmake .
13
-
14
- build:
15
- project: ALL_BUILD.vcxproj # path to Visual Studio solution or project
16
-
17
- # scripts to run after build
18
- after_build:
19
- - cd Debug
20
- - demo.exe
21
- - load_test.exe
22
- - cd ..
23
- - COPY .\test\Debug\test.run.exe .\test\test.run.exe
24
- - cd test
25
- - test.run.exe
26
- - cd ..
27
- - 7z a c:\projects\all.zip * -tzip
28
- - cd c:\projects
29
-
30
- artifacts:
31
- - path: all.zip
32
- name: all.zip
@@ -1 +0,0 @@
1
- ADD_SUBDIRECTORY(gtest)
@@ -1,5 +0,0 @@
1
- INCLUDE_DIRECTORIES(./ include)
2
- ADD_LIBRARY(gtest STATIC src/gtest-all.cc)
3
- if(NOT MSVC)
4
- TARGET_LINK_LIBRARIES(gtest pthread)
5
- endif()