Class: Ferret::Analysis::AsciiLetterTokenizer

Inherits:
Object
  • Object
show all
Defined in:
ext/r_analysis.c

Overview

Summary

A LetterTokenizer is a tokenizer that divides text at non-ASCII letters. That is to say, it defines tokens as maximal strings of adjacent letters, as defined by the regular expression _/+/_.

Example

"Dave's résumé, at http://www.davebalmain.com/ 1234"
  => ["Dave", "s", "r", "sum", "at", "http", "www", "davebalmain", "com"]