public static Edu.Stanford.Nlp.Ling.Tokensregex.CoreMapNodePattern ValueOf(Env env, string textAnnotationPattern) { Edu.Stanford.Nlp.Ling.Tokensregex.CoreMapNodePattern p = new Edu.Stanford.Nlp.Ling.Tokensregex.CoreMapNodePattern(new List <Pair <Type, NodePattern> >(1)); p.Add(typeof(CoreAnnotations.TextAnnotation), NewStringRegexPattern(textAnnotationPattern, (env != null) ? env.defaultStringPatternFlags : 0)); return(p); }
public static Edu.Stanford.Nlp.Ling.Tokensregex.CoreMapNodePattern ValueOf(Pattern textAnnotationPattern) { Edu.Stanford.Nlp.Ling.Tokensregex.CoreMapNodePattern p = new Edu.Stanford.Nlp.Ling.Tokensregex.CoreMapNodePattern(new List <Pair <Type, NodePattern> >(1)); p.Add(typeof(CoreAnnotations.TextAnnotation), new ComplexNodePattern.StringAnnotationRegexPattern(textAnnotationPattern)); return(p); }
public static Edu.Stanford.Nlp.Ling.Tokensregex.CoreMapNodePattern ValueOf(string textAnnotationPattern, int flags) { Edu.Stanford.Nlp.Ling.Tokensregex.CoreMapNodePattern p = new Edu.Stanford.Nlp.Ling.Tokensregex.CoreMapNodePattern(new List <Pair <Type, NodePattern> >(1)); p.Add(typeof(CoreAnnotations.TextAnnotation), NewStringRegexPattern(textAnnotationPattern, flags)); return(p); }