Пример #1
0
        public ZipLineCluster(ClusteringConfig config, ClusteringVocabulary vocabulary) : base(config)
        {
#if DEBUG
            this.Vocabulary = vocabulary;
            this.Vocabulary?.UseWildcard(TokenZipNode.WildcardId, "*");
#endif
        }
Пример #2
0
        public static TokenZipNode CreateRoot(IEnumerable <Token> tokens, ClusteringVocabulary vocabulary = null)
        {
            var node = new TokenZipNode(WildcardId, 0, null);

#if DEBUG
            node.Vocabulary = vocabulary;
#endif
            return(node);
        }
Пример #3
0
 public override bool InitIfPending(Clustering clustering, ClusteringVocabulary vocabulary)
 {
     this.Vocabulary = vocabulary;
     return(base.InitIfPending(clustering, vocabulary));
 }