NaiveText 0.3.1 → 0.3.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 +4 -4
- data/README.md +3 -6
- data/lib/NaiveText/ExamplesGroup.rb +1 -1
- data/lib/NaiveText/PropabilityCollection.rb +1 -1
- data/lib/NaiveText/TextClassifier.rb +1 -1
- data/lib/NaiveText/version.rb +1 -1
- 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: 8863bd947fbaa7645db1837cb9660a9b1c7e87a2
|
4
|
+
data.tar.gz: 7032fbbdabf2b2e752523f22a03df9d2aa6e0d86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc980eb123bf8a0aa3a1f80c2b0570dc4d48c16cb7dce2f773b2922ecb27430d43faacaa552cca7889ea3df4eb1ea0f4a2708e5dfb11d8aeee6b9c215c0f417e
|
7
|
+
data.tar.gz: ca2043c61446fb553bf834bfcbe8c23a0f5cd1da4720a2474d87271c464a6eb43eefd96cfe5e24d071bad33977fb63e4fd023bb4f9523509123b7157acd2c114
|
data/README.md
CHANGED
@@ -5,8 +5,8 @@ A naive Bayes Textclassifier written in Ruby
|
|
5
5
|
1. What does it do?
|
6
6
|
----
|
7
7
|
|
8
|
-
It sorts text into
|
9
|
-
The
|
8
|
+
It sorts text into predefined categories (i.e. interesting/boring).
|
9
|
+
The algorithm bases its decisions on given text examples.
|
10
10
|
|
11
11
|
## Installation
|
12
12
|
|
@@ -26,10 +26,7 @@ Or install it yourself as:
|
|
26
26
|
|
27
27
|
## Usage
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
Create a directory (naming convention: training) containing subdirectories for every category (i.e. 'interesting' and 'boring').
|
32
|
-
Fill the directories with examples for interesting/boring texts. This will the training material for the algorithm.
|
29
|
+
Create a directory for the trainings-data containing subdirectories for every category (i.e. 'interesting' and 'boring'). Fill the directories with examples for interesting/boring texts.
|
33
30
|
|
34
31
|
Next up, the code:
|
35
32
|
|
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.3.
|
4
|
+
version: 0.3.2
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|