Sha256: b7dfe81c27ff25db085510f89bfcb57aa7a6b23821df9726f07c9a60ad6028c9

Contents?: true

Size: 322 Bytes

Versions: 1

Compression:

Stored size: 322 Bytes

Contents

require 'rbbt/ner/annotations'
module Annotated
  attr_accessor :annotations
  def self.annotate(string, annotations = nil)
    string.extend Annotated
    string.annotations = annotations || []
    string
  end

  def split_segments(skip_segments = false)
    Segment.split(self, @annotations, skip_segments)
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rbbt-text-0.5.0 lib/rbbt/ner/annotations/annotated.rb