The following parse tree of:
The quick brown fox jumps over the lazy dog.
follows below:
{:sentiment -1,
:sents ({:dependency-parse-tree
({:child ({:child ({:dep "det",
:text "The",
:token-index 1}
{:dep "amod",
:text "quick",
:token-index 2}
{:dep "amod",
:text "brown",
:token-index 3}),
:dep "nsubj",
:text "fox",
:token-index 4}
{:child ({:dep "case",
:text "over",
:token-index 6}
{:dep "det",
:text "the",
:token-index 7}
{:dep "amod",
:text "lazy",
:token-index 8}),
:dep "nmod",
:text "dog",
:token-index 9}
{:dep "punct",
:text ".",
:token-index 10}),
:text "jumps",
:token-index 5}),
:parse-tree {:child
({:child
({:child
({:child ({:index-range [0 1],
:label "The",
:sentiment 0,
:token-index 1}),
:index-range [0 1],
:label "DT",
:sentiment 0}
{:child ({:index-range [1 2],
:label "quick",
:sentiment 0,
:token-index 2}),
:index-range [1 2],
:label "JJ",
:sentiment 0}
{:child ({:index-range [2 3],
:label "brown",
:sentiment 0,
:token-index 3}),
:index-range [2 3],
:label "JJ",
:sentiment 0}
{:child ({:index-range [3 4],
:label "fox",
:sentiment 0,
:token-index 4}),
:index-range [3 4],
:label "NN",
:sentiment 0}),
:index-range [0 4],
:label "NP",
:sentiment 0}
{:child ({:child ({:index-range [4 5],
:label "jumps",
:sentiment 0,
:token-index 5}),
:index-range [4 5],
:label "VBZ",
:sentiment 0}
{:child ({:child ({:index-range [5
6],
:label "over",
:sentiment 0,
:token-index 6}),
:index-range [5 6],
:label "IN",
:sentiment 0}
{:child ({:child ({:index-range [6
7],
:label "the",
:sentiment 0,
:token-index 7}),
:index-range [6
7],
:label "DT",
:sentiment 0}
{:child ({:index-range [7
8],
:label "lazy",
:sentiment -1,
:token-index 8}),
:index-range [7
8],
:label "JJ",
:sentiment -1}
{:child ({:index-range [8
9],
:label "dog",
:sentiment 1,
:token-index 9}),
:index-range [8
9],
:label "NN",
:sentiment 1}),
:index-range [6 9],
:label "NP",
:sentiment 0}),
:index-range [5 9],
:label "PP",
:sentiment 0}),
:index-range [4 9],
:label "VP",
:sentiment -1}
{:child ({:index-range [9 10],
:label ".",
:sentiment 0,
:token-index 10}),
:index-range [9 10],
:label ".",
:sentiment 0}),
:index-range [0 10],
:label "S",
:sentiment -1}),
:index-range [0 10],
:label "ROOT",
:sentiment -1},
:sent-index 0,
:sentiment -1,
:text "The quick brown fox jumps over the lazy dog.",
:tokens ({:char-range [0 3],
:index-range [0 1],
:lemma "the",
:natlog {:operator {:object-token-range [4 9],
:quantifier-token-head-index 0,
:quantifier-token-range [0 1],
:subject-token-range [1 4],
:surface-form "the"},
:polarity "up"},
:ner-tag "O",
:pos-tag "DT",
:sent-index 0,
:sentiment 0,
:srl {:dependency-label "nsubj",
:head-id 4,
:heads nil,
:id 1,
:propbank nil},
:stoplemma true,
:stopword true,
:text "The",
:token-index 1,
:token-range [0 1]}
{:char-range [4 9],
:index-range [1 2],
:lemma "quick",
:natlog {:polarity "up"},
:ner-tag "O",
:pos-tag "JJ",
:sent-index 0,
:sentiment 0,
:srl {:dependency-label "nsubj",
:head-id 4,
:heads nil,
:id 2,
:propbank nil},
:text "quick",
:token-index 2,
:token-range [1 2]}
{:char-range [10 15],
:index-range [2 3],
:lemma "brown",
:natlog {:polarity "up"},
:ner-tag "O",
:pos-tag "JJ",
:sent-index 0,
:sentiment 0,
:srl {:dependency-label "nsubj",
:head-id 4,
:heads nil,
:id 3,
:propbank nil},
:text "brown",
:token-index 3,
:token-range [2 3]}
{:char-range [16 19],
:index-range [3 4],
:lemma "fox",
:natlog {:polarity "up"},
:ner-tag "O",
:pos-tag "NN",
:sent-index 0,
:sentiment 0,
:srl {:dependency-label "root",
:head-id 5,
:heads ({:dependency-label "A0", :function-tag "PAG"}),
:id 4,
:propbank nil},
:text "fox",
:token-index 4,
:token-range [3 4]}
{:char-range [20 25],
:index-range [4 5],
:lemma "jump",
:natlog {:polarity "up"},
:ner-tag "O",
:pos-tag "VBZ",
:sent-index 0,
:sentiment 0,
:srl {:dependency-label nil,
:head-id 0,
:heads nil,
:id 5,
:propbank "jump.07"},
:text "jumps",
:token-index 5,
:token-range [4 5]}
{:char-range [26 30],
:index-range [5 6],
:lemma "over",
:natlog {:polarity "up"},
:ner-tag "O",
:pos-tag "IN",
:sent-index 0,
:sentiment 0,
:srl {:dependency-label "root",
:head-id 5,
:heads ({:dependency-label "AM-DIR", :function-tag ""}),
:id 6,
:propbank nil},
:text "over",
:token-index 6,
:token-range [5 6]}
{:char-range [31 34],
:index-range [6 7],
:lemma "the",
:natlog {:polarity "up"},
:ner-tag "O",
:pos-tag "DT",
:sent-index 0,
:sentiment 0,
:srl {:dependency-label "pobj",
:head-id 9,
:heads nil,
:id 7,
:propbank nil},
:stoplemma true,
:stopword true,
:text "the",
:token-index 7,
:token-range [6 7]}
{:char-range [35 39],
:index-range [7 8],
:lemma "lazy",
:natlog {:polarity "up"},
:ner-tag "O",
:pos-tag "JJ",
:sent-index 0,
:sentiment -1,
:srl {:dependency-label "pobj",
:head-id 9,
:heads nil,
:id 8,
:propbank nil},
:text "lazy",
:token-index 8,
:token-range [7 8]}
{:char-range [40 43],
:index-range [8 9],
:lemma "dog",
:natlog {:polarity "up"},
:ner-tag "O",
:pos-tag "NN",
:sent-index 0,
:sentiment 1,
:srl {:dependency-label "prep",
:head-id 6,
:heads nil,
:id 9,
:propbank nil},
:text "dog",
:token-index 9,
:token-range [8 9]}
{:char-range [43 44],
:index-range [9 10],
:lemma ".",
:natlog {:polarity "up"},
:ner-tag "O",
:pos-tag ".",
:sent-index 0,
:sentiment 0,
:srl {:dependency-label "root",
:head-id 5,
:heads nil,
:id 10,
:propbank nil},
:text ".",
:token-index 10,
:token-range [9 10]})}),
:text "The quick brown fox jumps over the lazy dog."}
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close