Class TokenExpressionFactory

  • All Implemented Interfaces:
    com.google.common.base.Function<java.lang.String,​edu.washington.cs.knowitall.regex.Expression.BaseExpression<ChunkTaggedToken>>, java.util.function.Function<java.lang.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 
      Modifier and Type Field Description
      private boolean caseSensitive  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      edu.washington.cs.knowitall.regex.Expression.BaseExpression<ChunkTaggedToken> create​(java.lang.String expr)  
      • Methods inherited from class edu.washington.cs.knowitall.regex.ExpressionFactory

        apply
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Function

        equals
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Field Detail

      • caseSensitive

        private final boolean caseSensitive
    • Constructor Detail

      • TokenExpressionFactory

        TokenExpressionFactory​(boolean caseSensitive)
        Parameters:
        caseSensitive - whether word tokens should be compared case-sensitively - also used for regular expressions
    • Method Detail

      • create

        public edu.washington.cs.knowitall.regex.Expression.BaseExpression<ChunkTaggedToken> create​(java.lang.String expr)
        Specified by:
        create in class edu.washington.cs.knowitall.regex.ExpressionFactory<ChunkTaggedToken>