org.cleartk.token.tokenizer
Class Subtokenizer
java.lang.Object
org.cleartk.token.tokenizer.Tokenizer_ImplBase
org.cleartk.token.tokenizer.Subtokenizer
- All Implemented Interfaces:
- Tokenizer
public class Subtokenizer
- extends Tokenizer_ImplBase
Copyright (c) 2007-2008, Regents of the University of Colorado
All rights reserved.
This tokenizer is named 'Subtokenizer' because it is designed to over-generate tokens that can
then be used as input for another tokenization approach. Specifically, this tokenizer can be used
as input for BIO-styled tokenization using a classifier. Each token generated by this tokenizer
would be assigned a B-TOKEN (or something similar) or I-TOKEN for a given set of gold-standard
tokens or based on the results of a classifier.
Please see the corresponding unit tests for examples of how this tokenizer produces tokens.
- Author:
- Philip
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
subtokensRegex
public static String subtokensRegex
subtokensPattern
public static Pattern subtokensPattern
multipleWhitespaceRegex
public static String multipleWhitespaceRegex
multipleWhitespacePattern
public static Pattern multipleWhitespacePattern
Subtokenizer
public Subtokenizer()
getTokenTexts
public String[] getTokenTexts(String text)
- Specified by:
getTokenTexts in class Tokenizer_ImplBase
Copyright © 2012. All Rights Reserved.