Liking cljdoc? Tell your friends :D

dk.simongray.datalinguist.triple

Functions dealing with (subject; relation; object) triples.

Functions dealing with (subject; relation; object) triples.
raw docstring

confidenceclj

(confidence triple)

The confidence score of the triple.

The confidence score of the `triple`.
raw docstring

implied-be?clj

(implied-be? triple)

If true, this triple expresses an implied 'to be' relation.

If true, this `triple` expresses an implied 'to be' relation.
raw docstring

objectclj

(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).
raw docstring

prefix-be?clj

(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).
raw docstring

relationclj

(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).
raw docstring

subjectclj

(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).
raw docstring

suffix-be?clj

(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).
raw docstring

suffix-of?clj

(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).
raw docstring

tmod?clj

(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).
raw docstring

tokensclj

(tokens triple)

The tokens of the triple.

The tokens of the `triple`.
raw docstring

triple->datalogclj

(triple->datalog triple)

Convert the triple to a Datomic-style EaV tuple.

Convert the `triple` to a Datomic-style EaV tuple.
raw docstring

triple->dependency-graphclj

(triple->dependency-graph triple)

Convert the triple to a dependency graph.

Convert the `triple` to a dependency graph.
raw docstring

triple->sentenceclj

(triple->sentence triple)

Convert the triple to a flat sentence.

Convert the `triple` to a flat sentence.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close