twss-classifier 0.0.1
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.
- data/Gemfile +4 -0
- data/README.md +10 -0
- data/Rakefile +2 -0
- data/data/fmylife-parsed.txt +3351 -0
- data/data/gutenberg-fairy-tales.txt +2823 -0
- data/data/raw-data/fmylife-data.txt +1302 -0
- data/data/raw-data/texts-from-last-night-data.txt +1546 -0
- data/data/raw-data/twss-stories-data.txt +2131 -0
- data/data/texts-from-last-night-parsed.txt +2445 -0
- data/data/twss-stories-parsed.txt +2091 -0
- data/demo.rb +28 -0
- data/lib/twss-classifier.rb +16 -0
- data/lib/twss-classifier/naive-bayes.rb +121 -0
- data/lib/twss-classifier/twss-classifier.yaml +16146 -0
- data/lib/twss-classifier/version.rb +3 -0
- data/twss-classifier.gemspec +21 -0
- metadata +83 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "twss-classifier/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "twss-classifier"
|
7
|
+
s.version = TwssClassifier::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Edwin Chen"]
|
10
|
+
s.email = ["hello@echen.me"]
|
11
|
+
s.homepage = "http://twss-classifier.heroku.com"
|
12
|
+
s.summary = %q{A TWSS Classifier.}
|
13
|
+
s.description = %q{Determine whether a sentence has "That's what she said!" as a valid response.}
|
14
|
+
|
15
|
+
s.rubyforge_project = "twss-classifier"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: twss-classifier
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Edwin Chen
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-05-22 00:00:00 -07:00
|
19
|
+
default_executable:
|
20
|
+
dependencies: []
|
21
|
+
|
22
|
+
description: Determine whether a sentence has "That's what she said!" as a valid response.
|
23
|
+
email:
|
24
|
+
- hello@echen.me
|
25
|
+
executables: []
|
26
|
+
|
27
|
+
extensions: []
|
28
|
+
|
29
|
+
extra_rdoc_files: []
|
30
|
+
|
31
|
+
files:
|
32
|
+
- Gemfile
|
33
|
+
- README.md
|
34
|
+
- Rakefile
|
35
|
+
- data/fmylife-parsed.txt
|
36
|
+
- data/gutenberg-fairy-tales.txt
|
37
|
+
- data/raw-data/fmylife-data.txt
|
38
|
+
- data/raw-data/texts-from-last-night-data.txt
|
39
|
+
- data/raw-data/twss-stories-data.txt
|
40
|
+
- data/texts-from-last-night-parsed.txt
|
41
|
+
- data/twss-stories-parsed.txt
|
42
|
+
- demo.rb
|
43
|
+
- lib/twss-classifier.rb
|
44
|
+
- lib/twss-classifier/naive-bayes.rb
|
45
|
+
- lib/twss-classifier/twss-classifier.yaml
|
46
|
+
- lib/twss-classifier/version.rb
|
47
|
+
- twss-classifier.gemspec
|
48
|
+
has_rdoc: true
|
49
|
+
homepage: http://twss-classifier.heroku.com
|
50
|
+
licenses: []
|
51
|
+
|
52
|
+
post_install_message:
|
53
|
+
rdoc_options: []
|
54
|
+
|
55
|
+
require_paths:
|
56
|
+
- lib
|
57
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
hash: 3
|
63
|
+
segments:
|
64
|
+
- 0
|
65
|
+
version: "0"
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
75
|
+
requirements: []
|
76
|
+
|
77
|
+
rubyforge_project: twss-classifier
|
78
|
+
rubygems_version: 1.4.1
|
79
|
+
signing_key:
|
80
|
+
specification_version: 3
|
81
|
+
summary: A TWSS Classifier.
|
82
|
+
test_files: []
|
83
|
+
|