コード例 #1
0
 public override TsurgeonMatcher GetMatcher()
 {
     CoindexationGenerator coindexer = null;
     if (coindexes)
     {
         coindexer = new CoindexationGenerator();
     }
     return GetMatcher(new Dictionary<string, Tree>(), coindexer);
 }
コード例 #2
0
ファイル: TreeLocation.cs プロジェクト: gblosser/OpenNlp
            public LocationMatcher(Dictionary<string, Tree> newNodeNames, CoindexationGenerator coindexer,
                TreeLocation location)
            {
                this.newNodeNames = newNodeNames;
                this.coindexer = coindexer;
                this.location = location;

                this.childMatcher = location.child.GetMatcher(newNodeNames, coindexer);
            }
コード例 #3
0
        public override TsurgeonMatcher GetMatcher()
        {
            CoindexationGenerator coindexer = null;

            if (coindexes)
            {
                coindexer = new CoindexationGenerator();
            }
            return(GetMatcher(new Dictionary <string, Tree>(), coindexer));
        }
コード例 #4
0
ファイル: TsurgeonMatcher.cs プロジェクト: finalnlp/OpenNlp-1
        // TODO: ideally we should have the tree and the tregex matcher be part of this as well.
        // That would involve putting some of the functionality in Tsurgeon.java in this object
        public TsurgeonMatcher(TsurgeonPattern pattern, Dictionary <string, Tree> newNodeNames,
                               CoindexationGenerator coindexer)
        {
            this.NewNodeNames = newNodeNames;
            this.Coindexer    = coindexer;

            this.ChildMatcher = new TsurgeonMatcher[pattern.children.Length];
            for (int i = 0; i < pattern.children.Length; ++i)
            {
                this.ChildMatcher[i] = pattern.children[i].GetMatcher(newNodeNames, coindexer);
            }
        }
コード例 #5
0
ファイル: TsurgeonMatcher.cs プロジェクト: gblosser/OpenNlp
        // TODO: ideally we should have the tree and the tregex matcher be part of this as well.
        // That would involve putting some of the functionality in Tsurgeon.java in this object
        public TsurgeonMatcher(TsurgeonPattern pattern, Dictionary<string, Tree> newNodeNames,
            CoindexationGenerator coindexer)
        {
            this.NewNodeNames = newNodeNames;
            this.Coindexer = coindexer;

            this.ChildMatcher = new TsurgeonMatcher[pattern.children.Length];
            for (int i = 0; i < pattern.children.Length; ++i)
            {
                this.ChildMatcher[i] = pattern.children[i].GetMatcher(newNodeNames, coindexer);
            }
        }
コード例 #6
0
ファイル: RelabelNode.cs プロジェクト: gblosser/OpenNlp
 public RelabelMatcher(Dictionary<string, Tree> newNodeNames, CoindexationGenerator coindexer,
     RelabelNode node) :
         base(node, newNodeNames, coindexer)
 {
     this.node = node;
 }
コード例 #7
0
ファイル: RelabelNode.cs プロジェクト: gblosser/OpenNlp
 public override TsurgeonMatcher GetMatcher(Dictionary<string, Tree> newNodeNames, CoindexationGenerator coindexer)
 {
     return new RelabelMatcher(newNodeNames, coindexer, this);
 }
コード例 #8
0
ファイル: TreeLocation.cs プロジェクト: gblosser/OpenNlp
 public LocationMatcher Matcher(Dictionary<string, Tree> newNodeNames, CoindexationGenerator coindexer)
 {
     return new LocationMatcher(newNodeNames, coindexer, this);
 }
コード例 #9
0
ファイル: InsertNode.cs プロジェクト: gblosser/OpenNlp
 public Matcher(Dictionary<string, Tree> newNodeNames, CoindexationGenerator coindexer, InsertNode node) :
     base(node, newNodeNames, coindexer)
 {
     this.node = node;
     locationMatcher = node.location.Matcher(newNodeNames, coindexer);
 }
コード例 #10
0
 public Matcher(Dictionary<string, Tree> newNodeNames, CoindexationGenerator coindexer,
     TsurgeonPatternRoot tRoot) :
         base(tRoot, newNodeNames, coindexer)
 {
 }
コード例 #11
0
 public Matcher(Dictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer, AdjoinToHeadNode node)
     :
     base(node, newNodeNames, coindexer)
 {
     this.node = node;
 }
コード例 #12
0
ファイル: AdjoinToHeadNode.cs プロジェクト: gblosser/OpenNlp
 public Matcher(Dictionary<string, Tree> newNodeNames, CoindexationGenerator coindexer, AdjoinToHeadNode node)
     :
         base(node, newNodeNames, coindexer)
 {
     this.node = node;
 }
コード例 #13
0
 public Matcher(Dictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer,
                TsurgeonPatternRoot tRoot) :
     base(tRoot, newNodeNames, coindexer)
 {
 }
コード例 #14
0
ファイル: CreateSubtreeNode.cs プロジェクト: gblosser/OpenNlp
 public Matcher(Dictionary<string, Tree> newNodeNames, CoindexationGenerator coindexer,
     CreateSubtreeNode node) :
         base(node, newNodeNames, coindexer)
 {
     this.node = node;
 }
コード例 #15
0
ファイル: TsurgeonPattern.cs プロジェクト: gblosser/OpenNlp
 public abstract TsurgeonMatcher GetMatcher(Dictionary<string, Tree> newNodeNames, CoindexationGenerator coindexer);