opencog/relex — pull request #110 by ceefour (2014-07-11 04:37:59+00:00)
Title: Relex2Logic test cases.

Runs in Maven (Ant support is coming soon). Sample `mvn test` output:

```
Info: sentence: "Trees are plants"
Link-parsing: 2 milliseconds (avg=81 millisecs, cnt=3)
RelEx processing: 47 milliseconds (avg=71 millisecs, cnt=3)
00:01:09.394 [main] INFO relex.output.LogicViewTest - ; #1: (S (NP Trees.n) (VP are.v (NP plants.n)))

00:01:09.394 [main] DEBUG relex.output.LogicViewTest - Binary relations: [_obj(be, plant), _subj(be, tree)]
00:01:09.395 [main] DEBUG relex.output.LogicViewTest - Unary relations: [subscript-TAG(be, .v), pos(be, verb), tense(be, present), subscript-TAG(plant, .n), noun_number(plant, plural), pos(plant, noun), subscript-TAG(tree, .n), noun_number(tree, plural), pos(tree, noun)]
(ListLink (stv 1 1)
(AnchorNode "# New Parsed Sentence")
(SentenceNode "sentence@3c35bae6-06ce-492a-a950-a812910d645b")
)

00:01:09.400 [main] INFO relex.output.LogicViewTest - Logic relations: [(be-inheritance-rule "tree" (get-instance-name "tree" "trees@1c65da6f-07cf-4cd8-8e77-006b0a2b18af" (ParseNode "sentence@3c35bae6-06ce-492a-a950-a812910d645b_parse_0")) "plant" (get-instance-name "plant" "plants@dafed7c5-bf66-4841-a0e3-74dede677327" (ParseNode "sentence@3c35bae6-06ce-492a-a950-a812910d645b_parse_0"))), (tense-rule "be" (get-instance-name "be" "are@688e8fbc-6271-44bb-926d-7d158b8ce3ea" (ParseNode "sentence@3c35bae6-06ce-492a-a950-a812910d645b_parse_0")) "present")]
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.729 sec

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.975s
[INFO] Finished at: Fri Jul 11 00:01:09 VET 2014
[INFO] Final Memory: 18M/98M
[INFO] ------------------------------------------------------------------------
```