Liking cljdoc? Tell your friends :D

zensols.nlparse.feature.lang

Feature utility functions. In this library, all references to panon stand for parsed annotation, which is returned from zensols.nlparse.parse/parse.

Feature utility functions.  In this library, all references to
`panon` stand for *parsed annotation*, which is returned
from [[zensols.nlparse.parse/parse]].
raw docstring

first-propbank-labelclj

(first-propbank-label anon)

Find the first propbank label across all .

Find the first propbank label across all .
sourceraw docstring

first-sent-propbank-labelclj

(first-sent-propbank-label anon)

Find the first propbank label for a sentence.

Find the first propbank label for a sentence.
sourceraw docstring

mentions-feature-metasclj

(mentions-feature-metas entities)

Return the feature metadata for mentions-features.

Return the feature metadata for [[mentions-features]].
sourceraw docstring

mentions-featuresclj

(mentions-features panon tokens entities)
(mentions-features panon tokens entities mentions-keys)

Return mentions features for panon with defaults of 0 for all named entities. The parameter mentions-keys are a list of mentions keys (defaults to :mentions) and can include custom mentions (i.e. token regular expression entities). Features are computed on the top level mentions comments returned include

  • :mentions-count-E number of times entity E has occurred
  • :mentions-ratio-E number of times entity E has occured / total tokens.
Return mentions features for **panon** with defaults of 0 for all named
**entities**.  The parameter **mentions-keys** are a list of mentions keys
(defaults to `:mentions`) and can include custom mentions (i.e. token regular
expression entities).  Features are computed on the top level mentions
comments returned include

* **:mentions-count-E** number of times entity *E* has occurred
* **:mentions-ratio-E** number of times entity *E* has occured / total
tokens.
sourceraw docstring

pos-tag-feature-metasclj

(pos-tag-feature-metas)
source

pos-tag-featuresclj

(pos-tag-features tokens)

Return POS tag features computed all tokens, which include:

  • :pos-first-tag The first POS tag.
  • :pos-last-tag The last POS tag.
  • :pos-tag-count-adjective: The number of adjectives found.
  • :pos-tag-ratio-adjective: The ratio of adjectives to other POS tags.
  • :pos-tag-count-adverb: The number of adverbs found.
  • :pos-tag-ratio-adverb: The ratio of adverbs to other POS tags.
  • :pos-tag-count-noun: The number of nouns found.
  • :pos-tag-ratio-noun: The ratio of nouns to other POS tags.
  • :pos-tag-count-verb: The number of verbs found.
  • :pos-tag-ratio-verb: The ratio of verbs to other POS tags.
  • :pos-tag-count-wh: The number of what/when/where type questions POS tags.
  • :pos-tag-ratio-wh: The ratio of what/when/where type question POS tags to other POS tags.
  • :pos-tag-count-adjective: The number of adjectives found.
  • :pos-tag-ratio-adjective: The ratio of adjectives to other POS tags.
Return POS tag features computed all **tokens**, which include:

* **:pos-first-tag** The first POS tag.
* **:pos-last-tag** The last POS tag.
* **:pos-tag-count-adjective**: The number of adjectives found.
* **:pos-tag-ratio-adjective**: The ratio of adjectives to other POS tags.
* **:pos-tag-count-adverb**: The number of adverbs found.
* **:pos-tag-ratio-adverb**: The ratio of adverbs to other POS tags.
* **:pos-tag-count-noun**: The number of nouns found.
* **:pos-tag-ratio-noun**: The ratio of nouns to other POS tags.
* **:pos-tag-count-verb**: The number of verbs found.
* **:pos-tag-ratio-verb**: The ratio of verbs to other POS tags.
* **:pos-tag-count-wh**: The number of what/when/where type questions POS
tags.
* **:pos-tag-ratio-wh**: The ratio of what/when/where type question POS tags
to other POS tags.
* **:pos-tag-count-adjective**: The number of adjectives found.
* **:pos-tag-ratio-adjective**: The ratio of adjectives to other POS tags.
sourceraw docstring

sentiment-feature-metasclj

(sentiment-feature-metas)

Return the feature metadata for sentiment-features.

Return the feature metadata for [[sentiment-features]].
sourceraw docstring

sentiment-featuresclj

(sentiment-features panon)

Return sentiment features for parsed annotation panon, which include:

  • :sentiment-utterance The utterance level sentimment score.
  • :sentiment-sentence-sum The utterance sum across sentences.
  • :sentiment-sentence-mean The sentiment mean across sentences.
  • :sentiment-sentence-variance The sentiment variance across sentences.
Return sentiment features for parsed annotation **panon**, which include:

* **:sentiment-utterance** The utterance level sentimment score.
* **:sentiment-sentence-sum** The utterance sum across sentences.
* **:sentiment-sentence-mean** The sentiment mean across sentences.
* **:sentiment-sentence-variance** The sentiment variance across sentences.
sourceraw docstring

srl-feature-metasclj

(srl-feature-metas)
source

srl-featuresclj

(srl-features toks)
source

tree-feature-metasclj

(tree-feature-metas)
source

tree-featuresclj

(tree-features panon)
source

verb-feature-metasclj

(verb-feature-metas)
source

verb-featuresclj

(verb-features sent)

Find the most probable key head verb in sentence sent.

Find the most probable key head verb in sentence **sent**.
sourceraw docstring

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

× close