Functions dealing with (subject; relation; object) triples.
Functions dealing with (subject; relation; object) triples.
(confidence triple)
The confidence score of the triple
.
The confidence score of the `triple`.
(implied-be? triple)
If true, this triple
expresses an implied 'to be' relation.
If true, this `triple` expresses an implied 'to be' relation.
(object triple)
(object style triple)
The object of the triple
; style
can be :span, :link, :head, :lemma or
:text (default).
The object of the `triple`; `style` can be :span, :link, :head, :lemma or :text (default).
(prefix-be? triple)
If true, this triple
expresses a prefixed 'to be' relation. For example,
'President Obama' expresses (Obama; be; President).
If true, this `triple` expresses a prefixed 'to be' relation. For example, 'President Obama' expresses (Obama; be; President).
(relation triple)
(relation style triple)
The relation of the triple
; style
can be :span, :head, :lemma or
:text (default).
The relation of the `triple`; `style` can be :span, :head, :lemma or :text (default).
(subject triple)
(subject style triple)
The subject of the triple
; style
can be :span, :link, :head, :lemma or
:text (default).
The subject of the `triple`; `style` can be :span, :link, :head, :lemma or :text (default).
(suffix-be? triple)
If true, this triple
expresses a suffixed 'to be' relation. For example,
'Tim's father Tom' expresses (Tim; 's father is; Tom).
If true, this `triple` expresses a suffixed 'to be' relation. For example, 'Tim's father Tom' expresses (Tim; 's father is; Tom).
(suffix-of? triple)
If true, this triple
has an ungrounded 'of' at the end of the relation.
For example, 'United States president Barack Obama' expresses the relation
(Obama; is president of; United States).
If true, this `triple` has an ungrounded 'of' at the end of the relation. For example, 'United States president Barack Obama' expresses the relation (Obama; is president of; United States).
(tmod? triple)
If true, this triple
expresses a tmod (temporal modifier) relation that is
not grounded in the sentence. For example, 'I went to the store Friday' would
otherwise yield the strange triple (I; go to store; Friday).
If true, this `triple` expresses a tmod (temporal modifier) relation that is not grounded in the sentence. For example, 'I went to the store Friday' would otherwise yield the strange triple (I; go to store; Friday).
(triple->datalog triple)
Convert the triple
to a Datomic-style EaV tuple.
Convert the `triple` to a Datomic-style EaV tuple.
(triple->dependency-graph triple)
Convert the triple
to a dependency graph.
Convert the `triple` to a dependency graph.
(triple->sentence triple)
Convert the triple
to a flat sentence.
Convert the `triple` to a flat sentence.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close