module

LexisMinhash::Document

Document interface for custom document types

Implement this module to use custom document types with the library:

struct MyDocument
  include LexisMinhash::Document

  getter text : String

  def initialize(@text : String)
  end
end

Instance methods

text

Returns the text content of the document

Source