Class TokenExpressionFactory
java.lang.Object
edu.washington.cs.knowitall.regex.ExpressionFactory<ChunkTaggedToken>
org.languagetool.chunking.TokenExpressionFactory
- All Implemented Interfaces:
com.google.common.base.Function<String, edu.washington.cs.knowitall.regex.Expression.BaseExpression<ChunkTaggedToken>>, Function<String, edu.washington.cs.knowitall.regex.Expression.BaseExpression<ChunkTaggedToken>>
final class TokenExpressionFactory
extends edu.washington.cs.knowitall.regex.ExpressionFactory<ChunkTaggedToken>
- Since:
- 2.9
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedu.washington.cs.knowitall.regex.Expression.BaseExpression<ChunkTaggedToken> Methods inherited from class edu.washington.cs.knowitall.regex.ExpressionFactory
applyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Function
equals
-
Field Details
-
caseSensitive
private final boolean caseSensitive
-
-
Constructor Details
-
TokenExpressionFactory
TokenExpressionFactory(boolean caseSensitive) - Parameters:
caseSensitive- whether word tokens should be compared case-sensitively - also used for regular expressions
-
-
Method Details
-
create
public edu.washington.cs.knowitall.regex.Expression.BaseExpression<ChunkTaggedToken> create(String expr) - Specified by:
createin classedu.washington.cs.knowitall.regex.ExpressionFactory<ChunkTaggedToken>
-