Module: Relationship

Extended by:
Annotation
Includes:
Segment
Defined in:
lib/rbbt/ner/segment/relationship.rb

Instance Method Summary collapse

Methods included from Segment

align, clean_sort, #end, #includes?, index, load_tsv, load_tsv_values, #make_relative, overlaps, #pull, #push, #range, #range_in, #segment_length, set_tsv_fields, sort, split, tsv, tsv_values_for_segment

Instance Method Details

#htmlObject



8
9
10
11
12
13
14
# File 'lib/rbbt/ner/segment/relationship.rb', line 8

def html
  text = <<-EOF
<span class='Relationship'\
>#{ self }</span>
  EOF
  text.chomp
end

#html_with_entities(*types) ⇒ Object



16
17
18
19
# File 'lib/rbbt/ner/segment/relationship.rb', line 16

def html_with_entities(*types)
  annotations.values_at(*types).each do |segments|
  end
end