david-mccullars/text_rank

View on GitHub
lib/text_rank/tokenizer/punctuation.rb

Summary

Maintainability
A
0 mins
Test Coverage
module TextRank
  module Tokenizer

    ##
    # A tokenizer regex that preserves single punctuation symbols as a token. Use
    # this if one or more of your TokenFilter classes need punctuation in order to
    # make decisions.
    ##
    # rubocop:disable Naming/ConstantName
    Punctuation = /(\p{Punct})/
    # rubocop:enable Naming/ConstantName

  end
end