From 6af0e08e8fdec9d6a97244da8d136501022a6c93 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Tue, 3 Jun 2014 15:13:42 +0200
Subject: get rid of that silly translation stuff..
---
lib/nlp_ruby/hg.rb | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
(limited to 'lib')
diff --git a/lib/nlp_ruby/hg.rb b/lib/nlp_ruby/hg.rb
index 66e3b13..b8b147e 100644
--- a/lib/nlp_ruby/hg.rb
+++ b/lib/nlp_ruby/hg.rb
@@ -43,13 +43,12 @@ end
class HG::Hyperedge
attr_accessor :head, :tails, :weight, :f, :mark, :rule, :left, :right
- def initialize head=nil, tails=[], weight=0.0, f={}, rule=nil, left=nil, right=nil
+ def initialize head=nil, tails=[], weight=0.0, f={}
@head = head
@tails = tails
@weight = weight
@f = f
@mark = 0
- @rule = Grammar::Rule.from_s rule if rule
end
def arity
@@ -61,7 +60,7 @@ class HG::Hyperedge
end
def to_s
- "Hyperedge