mccraigmccraig-maxent_string_classifier 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/Rakefile +41 -0
- metadata +53 -0
data/Rakefile
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
#!/usr/bin/env jruby
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'rake'
|
5
|
+
require 'rake/gempackagetask'
|
6
|
+
require 'rake/clean'
|
7
|
+
require 'spec/rake/spectask'
|
8
|
+
|
9
|
+
CLEAN << 'pkg'
|
10
|
+
CLEAN.insert( -1, *FileList["data/**/*.txt.gz"] )
|
11
|
+
|
12
|
+
$LOAD_PATH << "lib"
|
13
|
+
|
14
|
+
gemspec = eval( File.read( File.join( File.dirname(__FILE__), 'maxent_string_classifier.gemspec' ) ) )
|
15
|
+
|
16
|
+
Rake::GemPackageTask.new(gemspec) do |pkg|
|
17
|
+
pkg.need_zip = true
|
18
|
+
pkg.need_tar = true
|
19
|
+
end
|
20
|
+
|
21
|
+
# add a dependency to the :gem task
|
22
|
+
task :gem => [:build_models]
|
23
|
+
|
24
|
+
Spec::Rake::SpecTask.new do |t|
|
25
|
+
t.name = :spec
|
26
|
+
t.warning = true
|
27
|
+
t.rcov = false
|
28
|
+
t.spec_files = FileList["spec/**/*_spec.rb"]
|
29
|
+
t.libs << "./lib"
|
30
|
+
end
|
31
|
+
|
32
|
+
desc "build and persist classifier models for all sub-directories of data directory"
|
33
|
+
task :build_models do
|
34
|
+
require 'lib/maxent_string_classifier'
|
35
|
+
Dir["data/*"].each do |dir|
|
36
|
+
if File.directory?( dir )
|
37
|
+
model = MaxentStringClassifier::Loader.train(File.basename(dir))
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
metadata
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mccraigmccraig-maxent_string_classifier
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: "0.1"
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- mccraigmccraig
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-04-20 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: maxent_string_classifier is a JRuby library, which wraps the OpenNLP Maxent classifier and makes it easy to train and use string classifiers
|
17
|
+
email: craig@trampolinesystems.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files: []
|
23
|
+
|
24
|
+
files:
|
25
|
+
- Rakefile
|
26
|
+
has_rdoc: false
|
27
|
+
homepage: http://github.com/mccraigmccraig/maxent_string_classifier
|
28
|
+
post_install_message:
|
29
|
+
rdoc_options: []
|
30
|
+
|
31
|
+
require_paths:
|
32
|
+
- lib
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: "0"
|
38
|
+
version:
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: "0"
|
44
|
+
version:
|
45
|
+
requirements:
|
46
|
+
- none
|
47
|
+
rubyforge_project:
|
48
|
+
rubygems_version: 1.2.0
|
49
|
+
signing_key:
|
50
|
+
specification_version: 2
|
51
|
+
summary: maxent_string_classifier is a JRuby library for creating string classifiers, based on OpenNLP Maxent
|
52
|
+
test_files: []
|
53
|
+
|