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

Updated examples for testing purposes

parent 11c7bb85
......@@ -24,6 +24,7 @@
"depparse"
"lemma"
"relation"
"tokenize"
"coref"
"openie"
"ner"]
......@@ -39,7 +40,7 @@
(delay (nlp test-sentence-one)))
(def sentences-one
(delay (dl/sentences @annotated-example-one)))
(dl/sentences @annotated-example-one))
(def annotated-example-two
(delay (nlp test-sentence-two)))
......@@ -58,19 +59,23 @@
(map dl/mentions @sentences)
(map dl/annotation "relation" @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/dependency-graph @sentences)
(map dl/dependency-graph @sentences-one)
(dl/dependency-graph (nth sentences-one 1))
(map dl/dependency-graph @sentences-two)
(map dl/lemma @sentences)
(map dl/lemma @sentences-one)
(map dl/lemma sentences-one)
(map dl/lemma @sentences-two)
(dl/tokens (nth sentences-one 1))
(map dl/tokens @sentences-two)
(->> (mapcat dl/triples @sentences) (map triple->datalog))
(dl/annotation CorefCoreAnnotations$CorefChainAnnotation @annotated-example)
(show-mentions)
sentences-one
;; Datafy the annotations. Retrieves direct annotations for every sentence.
;; Keep in mind that `dl/recur-datafy` currently doesn't work in this instance
;; 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