public virtual void TestMoveRB() { Tree test = Tree.ValueOf(SymDontMoveRb); Tree result = CoordinationTransformer.MoveRB(test); NUnit.Framework.Assert.AreEqual(test.ToString(), result.ToString()); }
/// <summary> /// Construct a new /// <c>CollocationFinder</c> /// over the /// <c>Tree</c> /// t. /// </summary> /// <param name="t">parse tree</param> /// <param name="w">wordnet connection</param> /// <param name="hf"> /// /// <see cref="IHeadFinder"/> /// to use /// </param> public CollocationFinder(Tree t, IWordNetConnection w, IHeadFinder hf) { CoordinationTransformer transformer = new CoordinationTransformer(hf); this.wnConnect = w; this.qTree = transformer.TransformTree(t); this.collocationCollector = Generics.NewArrayList(); this.hf = hf; this.GetCollocationsList(); if (Debug) { log.Info("Collected collocations: " + collocationCollector); } }