コード例 #1
0
 public static Edu.Stanford.Nlp.Ling.Tokensregex.CoreMapNodePattern ValueOf(Env env, IDictionary <string, string> attributes)
 {
     Edu.Stanford.Nlp.Ling.Tokensregex.CoreMapNodePattern p = new Edu.Stanford.Nlp.Ling.Tokensregex.CoreMapNodePattern(new List <Pair <Type, NodePattern> >(attributes.Count));
     p.Populate(env, attributes, null);
     return(p);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }