Commit 85952bbe authored by Jonathan Poalses's avatar Jonathan Poalses

Updated examples for testing purposes

parent 11c7bb85
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
"depparse" "depparse"
"lemma" "lemma"
"relation" "relation"
"tokenize"
"coref" "coref"
"openie" "openie"
"ner"] "ner"]
...@@ -39,7 +40,7 @@ ...@@ -39,7 +40,7 @@
(delay (nlp test-sentence-one))) (delay (nlp test-sentence-one)))
(def sentences-one (def sentences-one
(delay (dl/sentences @annotated-example-one))) (dl/sentences @annotated-example-one))
(def annotated-example-two (def annotated-example-two
(delay (nlp test-sentence-two))) (delay (nlp test-sentence-two)))
...@@ -58,19 +59,23 @@ ...@@ -58,19 +59,23 @@
(map dl/mentions @sentences) (map dl/mentions @sentences)
(map dl/annotation "relation" @sentences) (map dl/annotation "relation" @sentences)
(map dl/constituency-tree @sentences) (map dl/constituency-tree @sentences)
(map dl/constituency-tree @sentences-one) (map dl/constituency-tree sentences-one)
(map dl/constituency-tree @sentences-two) (map dl/constituency-tree @sentences-two)
(map dl/dependency-graph @sentences) (map dl/dependency-graph @sentences)
(map dl/dependency-graph @sentences-one) (dl/dependency-graph (nth sentences-one 1))
(map dl/dependency-graph @sentences-two) (map dl/dependency-graph @sentences-two)
(map dl/lemma @sentences) (map dl/lemma @sentences)
(map dl/lemma @sentences-one) (map dl/lemma sentences-one)
(map dl/lemma @sentences-two) (map dl/lemma @sentences-two)
(dl/tokens (nth sentences-one 1))
(map dl/tokens @sentences-two)
(->> (mapcat dl/triples @sentences) (map triple->datalog)) (->> (mapcat dl/triples @sentences) (map triple->datalog))
(dl/annotation CorefCoreAnnotations$CorefChainAnnotation @annotated-example) (dl/annotation CorefCoreAnnotations$CorefChainAnnotation @annotated-example)
(show-mentions) (show-mentions)
sentences-one
;; Datafy the annotations. Retrieves direct annotations for every sentence. ;; Datafy the annotations. Retrieves direct annotations for every sentence.
;; Keep in mind that `dl/recur-datafy` currently doesn't work in this instance ;; Keep in mind that `dl/recur-datafy` currently doesn't work in this instance
;; and will possibly be removed in a future update: ;; and will possibly be removed in a future update:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment