Skip to content

Commit

Permalink
renaming to zipf
Browse files Browse the repository at this point in the history
  • Loading branch information
pks committed Jun 16, 2014
1 parent 912ff6a commit 4059a5d
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 20 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
version := $$(grep s.version nlp_ruby.gemspec | awk '{print $$3}' | sed "s|'||g")
version := $$(grep s.version zipf.gemspec | awk '{print $$3}' | sed "s|'||g")


all: lib/nlp_ruby.rb lib/nlp_ruby/bleu.rb lib/nlp_ruby/dag.rb lib/nlp_ruby/fileutil.rb lib/nlp_ruby/misc.rb lib/nlp_ruby/semirings.rb lib/nlp_ruby/SparseVector.rb lib/nlp_ruby/stringutil.rb lib/nlp_ruby/tfidf.rb lib/nlp_ruby/Translation.rb
gem build nlp_ruby.gemspec
all: lib/zipf.rb lib/zipf/bleu.rb lib/zipf/dag.rb lib/zipf/fileutil.rb lib/zipf/misc.rb lib/zipf/semirings.rb lib/zipf/SparseVector.rb lib/zipf/stringutil.rb lib/zipf/tfidf.rb lib/zipf/Translation.rb
gem build zipf.gemspec

install:
gem install nlp_ruby-$(version).gem
gem install zipf-$(version).gem

clean:
rm nlp_ruby-$(version).gem
gem uninstall nlp_ruby -v $(version)
rm zipf-$(version).gem
gem uninstall zipf -v $(version)

rake_test:
rake test

publish:
gem push nlp_ruby-$(version).gem
gem push zipf-$(version).gem

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
nlp_ruby
========
zipf
====

My little NLP library, supposed to make _my_ work a little easier and less redundant.
The .gem can be found here: https://rubygems.org/gems/nlp_ruby
The .gem can be found here: https://rubygems.org/gems/zipf

bleu.rb : BLEU implementation, also per-sentence-BLEU
dag.rb : implementation of a directed acyclic graph and various algorithms
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/nlp_ruby/bleu.rb → lib/zipf/bleu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,5 @@ def BLEU::per_sentence_bleu hypothesis, reference, n=4, smooth=0.0
end


end # module
end #module

2 changes: 1 addition & 1 deletion lib/nlp_ruby/dag.rb → lib/zipf/dag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,5 @@ def DAG::read_graph_from_json fn, semiring=RealSemiring.new
end


end # module
end #module

File renamed without changes.
3 changes: 2 additions & 1 deletion lib/nlp_ruby/grammar.rb → lib/zipf/grammar.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module Grammar


class T
attr_accessor :word

Expand Down Expand Up @@ -118,5 +119,5 @@ def add_pass_through_rules s
end


end # module
end #module

2 changes: 1 addition & 1 deletion lib/nlp_ruby/hg.rb → lib/zipf/hg.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby

require 'nlp_ruby'
require_relative 'semirings'
require 'json'


Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions lib/nlp_ruby/semirings.rb → lib/zipf/semirings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# as described in:
# 'Dynamic Programming Algorithms in
# Semiring and Hypergraph Frameworks' (Liang Huang)
#

class Semiring
attr_accessor :add, :multiply, :one, :null, :convert
end
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/test_dag.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby

require 'nlp_ruby'
require_relative '../lib/zipf'
require 'test/unit'


Expand Down
2 changes: 1 addition & 1 deletion test/test_hg.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby

require 'nlp_ruby'
require_relative '../lib/zipf'
require 'test/unit'


Expand Down
8 changes: 4 additions & 4 deletions nlp_ruby.gemspec → zipf.gemspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Gem::Specification.new do |s|
s.name = 'nlp_ruby'
s.version = '0.4.4'
s.date = '2014-06-03'
s.name = 'zipf'
s.version = '1.0'
s.date = '2014-06-16'
s.summary = 'nlp_ruby'
s.description = 'NLP related tools and classes'
s.authors = ['Patrick Simianer']
s.email = 'p@simianer.de'
s.files = Dir['lib/*.rb', 'lib/nlp_ruby/*.rb']
s.files = Dir['lib/*.rb', 'lib/zipf/*.rb']
s.homepage = 'http://simianer.de'
s.license = 'MIT'
end
Expand Down

0 comments on commit 4059a5d

Please sign in to comment.