Sha256: f77ace4b5941a4af06f0e2cc72314495e465e7e16e1b442dcb86ea7260e0f83e
Contents?: true
Size: 360 Bytes
Versions: 2
Compression:
Stored size: 360 Bytes
Contents
module TextRank module Tokenizer ## # Tokenizer to split on any whitespace # # = Example # # Whitespace.new.tokenize("i should:like to know:which is worse.") # => ["i", "should:like", "to", "know:which", "is", "worse."] ## class Whitespace < Regex def initialize super(/\s+/) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
text_rank-1.1.1 | lib/text_rank/tokenizer/whitespace.rb |
text_rank-1.1.0 | lib/text_rank/tokenizer/whitespace.rb |