lib/rbbt/segment/named_entity.rb in rbbt-text-1.3.8 vs lib/rbbt/segment/named_entity.rb in rbbt-text-1.3.9

- old
+ new

@@ -21,16 +21,17 @@ Score: #{score.inspect} EOF end def html - title = code.nil? ? entity_type : [entity_type, code].compact * ":" + title = code.nil? ? entity_type : [entity_type, code].compact * " - " text = <<-EOF <span class='Entity'\ #{entity_type.nil? ? "" : " attr-entity-type='#{Array === entity_type ? entity_type * " " : entity_type}'"}\ #{code.nil? ? "" : " attr-entity-code='#{Array === code ? code * " " : code}'"}\ #{score.nil? ? "" : " attr-entity-score='#{Array === score ? score * " " : score}'"}\ +#{segid.nil? ? "" : " attr-segid='#{segid}'"}\ #{title.nil? ? "" : " title='#{Array === title ? title * " " : title}'"}\ >#{ self }</span> EOF text.chomp end