Permalink
Browse files

make it a gem

  • Loading branch information...
1 parent c769e71 commit c71e51a45b4523a25ff7bd50dda6756ff6a89b68 feedbackmine committed Mar 12, 2009
Showing with 41 additions and 0 deletions.
  1. +5 −0 Manifest.txt
  2. +18 −0 README
  3. +18 −0 language_detector.gemspec
View
@@ -0,0 +1,5 @@
+Manifest.txt
+README
+lib/language_detector.rb
+lib/model.yml
+test/language_detector_test.rb
View
18 README
@@ -0,0 +1,18 @@
+feedbackmine
+http://twitter.com/feedbackmine
+
+== Welcome
+This is a n-gram based language detector, written in ruby
+
+== Installation
+sudo gem sources -a http://gems.github.com (you only have to do this once)
+sudo gem install feedbackmine-language_detector
+
+== Usage
+require 'language_detector'
+d = LanguageDetector.new
+p d.detect('this text is in English')
+
+== Thanks
+Kevin Burton (http://feedblog.org/2005/08/19/ngram-language-categorization-source/). I used all the training data in his ngramcat project.
+
View
@@ -0,0 +1,18 @@
+Gem::Specification.new do |s|
+ s.name = %q{language_detector}
+ s.version = "0.1.0"
+
+ s.authors = ["feedbackmine"]
+ s.description = %q{n-gram based language detector, written in ruby}
+ s.email = %q{feedbackmine@feedbackmine.com}
+ s.files = ["README",
+ "Manifest.txt",
+ "lib/language_detector.rb",
+ "lib/model.yml",
+ "test/language_detector_test.rb"]
+ #s.has_rdoc = true
+ s.homepage = %q{http://www.tweetjobsearch.com}
+ #s.rdoc_options = ["--main", "README.txt"]
+ s.require_paths = ["lib"]
+ s.summary = %q{n-gram based language detector, written in ruby}
+end

0 comments on commit c71e51a

Please sign in to comment.