NaiveText 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/NaiveText.gemspec +2 -2
- data/README.md +5 -12
- data/lib/NaiveText/ExamplesGroup.rb +1 -1
- data/lib/NaiveText/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c77da3eeff67ccae563debe023d1b7381b270098
|
4
|
+
data.tar.gz: 818c857fbb2366d14bc599e2a074eead39d840b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebf2a4a647463099cc87d1ce3266765a4fcb2f6a770a604ca5293755851ac43dc938d13bc000f7604ee7892ca9974a36659985f433b5e1c29adf5494d36b1c70
|
7
|
+
data.tar.gz: 48f1e633ff228d192dfad74bc8f0c1cb4ada96fdac94a1979ef491d63613ab6b484f30079b2256d5c178b398b1d16b9779231b6ccfa33343b6404b20f7d2ea7f
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Change Log
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
|
+
|
5
|
+
## [Unreleased]
|
6
|
+
|
7
|
+
## [0.4.1] - 2015-10-29
|
8
|
+
### Added
|
9
|
+
- Changelog :-)
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
- Updated the description in the gemspec.
|
13
|
+
- Updated the Readme
|
14
|
+
|
15
|
+
### Removed
|
16
|
+
- Removed the need to call to_a manually, when using non-array exmaples in active NaiveText:build (like ActiveRecord:Relations).
|
17
|
+
|
18
|
+
## [0.4.0] - 2015-10-18
|
19
|
+
### Added
|
20
|
+
- Support of Active Record models as examples
|
21
|
+
- Support for new arguments list for NaiveText.build: NaiveText.build uses a keyword argument (catgeories) to accept an categories array of the followin format: [{category: 'name_of_category', examples: array_of_examples}]
|
22
|
+
|
23
|
+
|
24
|
+
[Unreleased]: https://github.com/RicciFlowing/NaiveText/compare/v0.4.0...HEAD
|
25
|
+
[0.4.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.1.0...v0.4.0
|
data/NaiveText.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["RicciFlowing"]
|
10
10
|
spec.email = ["benjamin@mathe-sellin.de"]
|
11
11
|
|
12
|
-
spec.summary = "A
|
13
|
-
spec.description = "
|
12
|
+
spec.summary = "A text classifier written in ruby"
|
13
|
+
spec.description = "NaiveText is a text classifier gem written in ruby and made to be easily integratable in your Rails app."
|
14
14
|
spec.homepage = "https://github.com/RicciFlowing/NaiveText"
|
15
15
|
spec.licenses = ['MIT']
|
16
16
|
|
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# NaiveText
|
2
2
|
|
3
|
-
|
3
|
+
NaiveText is a text classifier gem written in ruby and made to be easily integratable in your Rails app.
|
4
4
|
|
5
5
|
1. What does it do?
|
6
6
|
----
|
7
|
+
Text classifier are used in many areas of IT. The filter spam, predict what a user wants to buy, detect which language a text is written in, ...
|
7
8
|
|
8
|
-
|
9
|
-
The algorithm bases its decisions on classified trainingdata (text files, ActiveRecord models,...).
|
9
|
+
The kind of classifier included in NaiveText, uses existing text examples (junk-makrde e-mails, allready bought products, texts in different languages, ...) to calculate in which category (spam/e-mail, interesting_product/not_interesting_product, ...) a unknown text belongs.
|
10
10
|
|
11
11
|
## Installation
|
12
12
|
|
@@ -45,8 +45,8 @@ In your system (an rails app of course) you haven a *Post* model with a text att
|
|
45
45
|
```ruby
|
46
46
|
require 'NaiveText'
|
47
47
|
|
48
|
-
interesting_examples = Post.up_voted
|
49
|
-
boring_examples = Post.down_voted
|
48
|
+
interesting_examples = Post.up_voted
|
49
|
+
boring_examples = Post.down_voted
|
50
50
|
|
51
51
|
categories = [{name: 'interesting', examples: interesting_examples},
|
52
52
|
{name: 'boring', examples: boring_examples}];
|
@@ -61,13 +61,6 @@ Checkout the full example and some more in the
|
|
61
61
|
[NaiveText-example repo](https://github.com/RicciFlowing/NaiveText-examples).
|
62
62
|
Have fun using it!
|
63
63
|
|
64
|
-
|
65
|
-
## Development
|
66
|
-
|
67
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
68
|
-
|
69
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
70
|
-
|
71
64
|
## Contributing
|
72
65
|
|
73
66
|
1. Fork it ( https://github.com/RicciFlowing/NaiveText/fork )
|
data/lib/NaiveText/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: NaiveText
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RicciFlowing
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,7 +80,8 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description:
|
83
|
+
description: NaiveText is a text classifier gem written in ruby and made to be easily
|
84
|
+
integratable in your Rails app.
|
84
85
|
email:
|
85
86
|
- benjamin@mathe-sellin.de
|
86
87
|
executables: []
|
@@ -90,6 +91,7 @@ files:
|
|
90
91
|
- ".gitignore"
|
91
92
|
- ".rspec"
|
92
93
|
- ".travis.yml"
|
94
|
+
- CHANGELOG.md
|
93
95
|
- Gemfile
|
94
96
|
- Guardfile
|
95
97
|
- License.md
|
@@ -133,5 +135,5 @@ rubyforge_project:
|
|
133
135
|
rubygems_version: 2.4.6
|
134
136
|
signing_key:
|
135
137
|
specification_version: 4
|
136
|
-
summary: A
|
138
|
+
summary: A text classifier written in ruby
|
137
139
|
test_files: []
|