![JAR search and dependency download from the Maven repository](/logo.png)
edu.stanford.nlp.ling.tokensregex.Env Maven / Gradle / Ivy
package edu.stanford.nlp.ling.tokensregex;
import edu.stanford.nlp.ling.tokensregex.types.Expressions;
import edu.stanford.nlp.ling.tokensregex.types.Tags;
import edu.stanford.nlp.pipeline.CoreMapAttributeAggregator;
import java.util.function.Function;
import edu.stanford.nlp.util.Pair;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Holds environment variables to be used for compiling string into a pattern.
* Use {@link EnvLookup} to perform actual lookup (it will provide reasonable defaults)
*
*
* Some of the types of variables to bind are:
*
* SequencePattern
(compiled pattern)
* PatternExpr
(sequence pattern expression - precompiled)
* NodePattern
(pattern for matching one element)
* Class
(binding of CoreMap attribute to java Class)
*
*
*/
public class Env {
/**
* Parser that converts a string into a SequencePattern.
* @see edu.stanford.nlp.ling.tokensregex.parser.TokenSequenceParser
*/
SequencePattern.Parser parser;
/**
* Mapping of variable names to their values
*/
Map variables = new HashMap();//Generics.newHashMap();
/**
* Mapping of per thread temporary variables to their values
*/
ThreadLocal
© 2015 - 2025 Weber Informatics LLC | Privacy Policy