zensols.nlparse.srl

Wrap ClearNLP SRL.

Currently the propbank trained version is used. The main classification function is label.

classify-sent-trees

(classify-sent-trees sent-trees)(classify-sent-trees sent-trees classify-fn)

Return the max likelihood (by score returned from parse-sentences) tree set. The returned value is a list of sentences most likely to be correct.

dependency-labels

(dependency-labels)

Return dependency labels (under the head level and at the function tag level).

first-label-token-threshold

dynamic

Token minimum position that contains a label to help decide the best SRL labeled sentence to choose.

head-dependency-labels

(head-dependency-labels)

Return all argument labels for head dependencies.

head-function-tags

(head-function-tags)

Return function tags (under the head level).

label

(label tokens)

Label (classify) and return the tokenized sequence tokens of a sentence.

  • tokens are a sequence of strings that make up a sentence

parse

(parse panon)

parse-sentences

(parse-sentences sents)

Returns a list of hashs each having a list of sentence trees of the form: ({:sent, :score, :tree) …}. Each element’s :tree value is a list of DEPTree instances. Parameter is an object returned from parse-todo/parse.