-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relex2Logic test cases. #110
Conversation
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 - ; opencog#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] ------------------------------------------------------------------------ ```
|
||
private static final Logger log = LoggerFactory | ||
.getLogger(LogicCases.class); | ||
private static final String RELEX2LOGIC_TEST_PATH = "/relex2logic.ods"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ceefour I just noticed this, and I was curious: what was the contents of relex2logic.ods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I imagine this should have some meaning for me. I have a wild imagination. ???
On Fri, 9/12/14, Cosmo Harrigan [email protected] wrote:
Subject: Re: [relex] Relex2Logic test cases. (#110)
To: "opencog/relex" [email protected]
Date: Friday, September 12, 2014, 6:12 PM
In
src/java_test/relex/output/LogicCases.java:
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import com.google.common.base.Function;
+import com.google.common.base.Preconditions;
+import com.google.common.base.Splitter;
+import com.google.common.collect.FluentIterable;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
+
+
+public class LogicCases {
+
- private static final Logger log = LoggerFactory
.getLogger(LogicCases.class);
- private static final String RELEX2LOGIC_TEST_PATH =
"/relex2logic.ods";
@ceefour I just
noticed this, and I was curious: what was the contents of
relex2logic.ods?
—
Reply to this email directly or view
it on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anitzkin What do you mean by meaning? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Sat, Sep 13, 2014 at 12:19 PM, Cosmo Harrigan [email protected]
wrote:
In src/java_test/relex/output/LogicCases.java:
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import com.google.common.base.Function;
+import com.google.common.base.Preconditions;
+import com.google.common.base.Splitter;
+import com.google.common.collect.FluentIterable;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableSet;
+
+
+public class LogicCases {
+
- private static final Logger log = LoggerFactory
.getLogger(LogicCases.class);
- private static final String RELEX2LOGIC_TEST_PATH = "/relex2logic.ods";
@anitzkin https://github.com/anitzkin What do you mean by meaning? :)
“Don't for heaven's sake, be afraid of talking nonsense! But you must pay
attention to your nonsense.” -- Wittgenstein
... i.e., Meaning is paying attention to your nonsense.
QED
;)
ben
@cosmoharrigan @anitzkin @bgoertzel That line is a leftover (that I forgot to delete) from the rejected pull request #108 (see discussion in #103), This current pull request uses plain TSV format instead of ODS. |
@ceefour I see, thanks for the reply. @anitzkin @williampma Ah, what we were looking at was a depiction of 3 test cases throughout the pipeline stages: |
Runs in Maven (Ant support is coming soon). Sample
mvn test
output: