
eu.interedition.text.token.TokenizerSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of text-core Show documentation
Show all versions of text-core Show documentation
Stand-off Markup/Annotation Text Model
The newest version!
/*
* #%L
* Text Repository: Datastore for texts based on Interedition's model.
* %%
* Copyright (C) 2010 - 2011 The Interedition Development Group
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package eu.interedition.text.token;
import eu.interedition.text.Layer;
import eu.interedition.text.TextRange;
/**
* @author Gregor Middell
*/
public interface TokenizerSettings {
boolean startingAnnotationsAreBoundary(Tokenizer tokenizer, long offset, Iterable> annotations);
boolean endingAnnotationsAreBoundary(Tokenizer tokenizer, long offset, Iterable> annotations);
boolean isBoundary(Tokenizer tokenizer, long offset, char c);
void token(Tokenizer tokenizer, TextRange range);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy