The cl-conllu Reference Manual

This is the cl-conllu Reference Manual, version 0.15, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Feb 26 15:05:49 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 cl-conllu

Common Lisp library for dealing with CoNLL-U files

Author

Alexandre Rademaker <>

License

Apache 2.0

Long Description

This library provides a set of functions to work with CoNLL-U files. See https://universaldependencies.org/format.html for details about the CoNLL-U format adopted by the Universal Dependencies community. The library has functions for read/write files, apply rules for sentences transformation in batch mode, tree visualization, compare and evaluation trees etc. Documentation available in https://github.com/own-pt/cl-conllu/wiki.

Version

0.15

Dependencies
  • cl-ppcre (system).
  • uuid (system).
  • alexandria (system).
  • cl-log (system).
  • split-sequence (system).
  • xmls (system).
  • yason (system).
  • lispbuilder-lexer (system).
  • wilbur (system).
  • cl-markup (system).
  • optima.ppcre (system).
Source

cl-conllu.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


3.1 Lisp


3.1.1 cl-conllu/cl-conllu.asd

Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

ASDF Systems

cl-conllu.


3.1.3 cl-conllu/data.lisp

Dependency

packages.lisp (file).

Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface
Internals

3.1.4 cl-conllu/read-write.lisp

Dependency

data.lisp (file).

Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface
Internals

3.1.5 cl-conllu/evaluate.lisp

Dependencies
Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface
Internals

3.1.6 cl-conllu/confusion-matrix.lisp

Dependencies
Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface
Internals

3.1.7 cl-conllu/html.lisp

Dependencies
Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface
Internals

3.1.8 cl-conllu/query.lisp

Dependencies
Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface
Internals

3.1.9 cl-conllu/utils.lisp

Dependencies
Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface
Internals

3.1.10 cl-conllu/projective.lisp

Dependency

utils.lisp (file).

Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Internals

3.1.11 cl-conllu/rdf.lisp

Dependencies
Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface
Internals

3.1.12 cl-conllu/rdf-wilbur.lisp

Dependencies
Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface

convert-to-rdf (function).

Internals

3.1.13 cl-conllu/command-line.lisp

Dependencies
Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Internals

3.1.14 cl-conllu/rules.lisp

Dependencies
Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface
Internals

3.1.15 cl-conllu/editor.lisp

Dependencies
Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface

conlluedit (function).

Internals

3.1.16 cl-conllu/conllu-prolog.lisp

Dependencies
Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface

convert-filename (function).

Internals

3.1.17 cl-conllu/tag-converter.lisp

Dependencies
Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface
Internals

write-token-tag-suffix (function).


3.1.18 cl-conllu/draw.lisp

Dependencies
Source

cl-conllu.asd.

Parent Component

cl-conllu (system).

Public Interface
Internals

4 Packages

Packages are listed by definition order.


4.1 conllu.draw

Source

packages.lisp.

Use List
Used By List

conllu.user.

Public Interface
Internals

4.2 conllu.converters.tags

Source

packages.lisp.

Use List
Public Interface
Internals

write-token-tag-suffix (function).


4.3 cl-conllu

Source

packages.lisp.

Use List
  • cl-ppcre.
  • com.ravenbrook.common-lisp-log.
  • common-lisp.
  • split-sequence.
Used By List
Public Interface
Internals

4.4 conllu.editor

ruled based transformations

Source

packages.lisp.

Use List
Public Interface

conlluedit (function).

Internals

4.5 conllu.user

Source

packages.lisp.

Use List

4.6 conllu.rules

Source

packages.lisp.

Use List
Public Interface
Internals

4.7 conllu.prolog

Source

packages.lisp.

Use List
  • alexandria.
  • cl-conllu.
  • common-lisp.
  • split-sequence.
Public Interface

convert-filename (function).

Internals

4.8 conllu.evaluate

Functions for evaluating datasets and parser outputs in the CoNLL-U format.

Source

packages.lisp.

Use List
Public Interface
Internals

4.9 conllu.html

Functions for producing html formatting of objects in the library.

Source

packages.lisp.

Use List
Public Interface
Internals

4.10 conllu.converters.niceline

Source

packages.lisp.

Use List

4.11 conllu.rdf

Source

packages.lisp.

Use List
  • alexandria.
  • cl-conllu.
  • common-lisp.
  • split-sequence.
  • wilbur.
Internals

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


5.1 Public Interface


5.1.1 Special variables

Special Variable: *confusion-matrix-style*

HTML for styling the confusion matrix.

Package

conllu.html.

Source

html.lisp.


5.1.2 Ordinary functions

Function: adjust-sentence (sentence)

Receives a sentence and reenumerate IDs and HEAD values of each token so that their order (as in sentence-tokens) is respected.

Package

cl-conllu.

Source

data.lisp.

Function: apply-rules (sentences rules recursive)
Package

conllu.rules.

Source

rules.lisp.

Function: apply-rules-from-files (conllu-file rules-file new-conllu-file log-file &key recursive)
Package

conllu.rules.

Source

rules.lisp.

Function: attachment-score-by-sentence (list-sent1 list-sent2 &key labeled ignore-punct simple-dep)

Attachment score by sentence (macro-average).

The attachment score is the percentage of words that have correct arcs to their heads. The unlabeled attachment score (UAS) considers only who is the head of the token, while the labeled attachment score (LAS) considers both the head and the arc label (dependency label / syntactic class).

In order to choose between labeled or unlabeled,
set the key argument LABELED.

References:
- Dependency Parsing. Kubler, Mcdonald and Nivre (pp.79-80)

Package

conllu.evaluate.

Source

evaluate.lisp.

Function: attachment-score-by-word (list-sent1 list-sent2 &key labeled ignore-punct simple-dep)

Attachment score by word (micro-average).

The attachment score is the percentage of words that have correct arcs to their heads. The unlabeled attachment score (UAS) considers only who is the head of the token, while the labeled attachment score (LAS) considers both the head and the arc label (dependency label / syntactic class).

In order to choose between labeled or unlabeled,
set the key argument LABELED.

References:
- Dependency Parsing. Kubler, Mcdonald and Nivre (pp.79-80)

Package

conllu.evaluate.

Source

evaluate.lisp.

Function: confusion-matrix-cell-count (label1 label2 cm &key default-if-undefined)

Returns the number of tokens that are contained in the cell defined by LABEL1 LABEL2 in the confusion matrix CM.

If DEFAULT-IF-UNDEFINED, returns 0. Otherwise, raises an error in case there is no such cell.

Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: confusion-matrix-cell-tokens (label1 label2 cm &key default-if-undefined)

Returns the list of (SENT-ID . TOKEN-ID) of tokens in the cell LABEL1 LABEL2.

If DEFAULT-IF-UNDEFINED, returns the empty list. Otherwise, raises an error in case there is no such cell.

Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: confusion-matrix-cells-labels (cm)

Returns a list of ’(LABEL1 LABEL2) for each cell in the confusion matrix CM.

Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: confusion-matrix-columns-labels (cm)
Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: confusion-matrix-labels (cm)

Returns the list of all labels in the confusion matrix CM.

Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: confusion-matrix-normalize (cm)

Returns a new CONFUSION-MATRIX with new empty cells for each pair (LABEL1 LABEL2) of labels in (confusion-matrix-labels CM) that are undefined in CM.

Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: confusion-matrix-rows-labels (cm)

Returns the list of labels occuring in the rows of the confusion matix CM.

Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: confusion-matrix-update (list-sent1 list-sent2 cm)

Updates an existing confusion matrix by a list of sentences LIST-SENT1 and LIST-SENT2.

Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: conlluedit (sentences rules)
Package

conllu.editor.

Source

editor.lisp.

Function: convert-filename (context filename-in filename-out)
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Function: convert-rdf (corpusname stream conlls text-fn id-fn)

Converts the collection of sentences (as generated by READ-CONLLU) in CONLL, using the function TEXT-FN to extract the text of each sentence and ID-FN to extract the id of each sentence (we need this as there is no standardized way of knowing this.) Also the generated Turtle file contains a lot of duplication so when you import it into your triple-store, make sure you remove all duplicate triples afterwards.

Package

cl-conllu.

Source

rdf.lisp.

Function: convert-rdf-file (file-in file-out)
Package

cl-conllu.

Source

rdf.lisp.

Function: convert-to-rdf (sentences &key text-fn id-fn corpusname namespace-string stream rdf-format conll-namespace)

Converts a list of sentences (e.g. as generated by READ-CONLLU)
in SENTENCES, using the function TEXT-FN to extract the text of each sentence and ID-FN to extract the id of each sentence (we need this as there is no standardized way of knowing this.)

Currently only ntriples is supported as RDF-FORMAT.

Package

cl-conllu.

Source

rdf-wilbur.lisp.

Function: diff (sentences-a sentences-b &key test key)
Package

cl-conllu.

Source

utils.lisp.

Function: exact-match (list-sent1 list-sent2 &key compared-fields identity-fields test simple-dep ignore-punct)

Returns the list of sentences of LIST-SENT1 that are an exact match to the corresponding sentence of LIST-SENT2 (same position in list).

LIST-SENT1 and LIST-SENT2 must have the same size with corresponding sentences in order.

Package

conllu.evaluate.

Source

evaluate.lisp.

Function: exact-match-score (list-sent1 list-sent2 &key compared-fields identity-fields test simple-dep ignore-punct)

Returns the percentage of sentences of LIST-SENT1 that are an exact match to LIST-SENT2.

LIST-SENT1 and LIST-SENT2 must have the same size with corresponding sentences in order.

The typical use case is comparing the result of a tagger (or parser) against a test set, where an exact match is a completely correct tagging (or parse) for the sentence.

References:
- Dependency Parsing. Kubler, Mcdonald and Nivre (p.79)

Package

conllu.evaluate.

Source

evaluate.lisp.

Function: lazy-stream-reader (stream &key fn-meta start-lineno)

Return a function that returns one CoNLL-U sentence per call.

Package

cl-conllu.

Source

read-write.lisp.

Function: levenshtein (s1 s2 &key test)
Package

cl-conllu.

Source

utils.lisp.

Function: make-confusion-matrix (list-sent1 list-sent2 &key corpus-id key-fn test-fn sort-fn)

Creates a new confusion matrix from the lists of sentences LIST-SENT1 and LIST-SENT2.

Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: make-sentence (lineno lines fn-meta)
Package

cl-conllu.

Source

read-write.lisp.

Function: non-projectivity-accuracy (list-sent1 list-sent2)
Package

conllu.evaluate.

Source

evaluate.lisp.

Function: non-projectivity-precision (list-sent1 list-sent2)
Package

conllu.evaluate.

Source

evaluate.lisp.

Function: non-projectivity-recall (list-sent1 list-sent2)
Package

conllu.evaluate.

Source

evaluate.lisp.

Function: precision (list-sent1 list-sent2 deprel &key error-type simple-dep)

Restricted to words which are classified as of syntactical class (dependency type to head) DEPREL, returns the precision:
the number of true positives divided by the number of words predicted positive (that is, predicted as of class DEPREL).

We assume that LIST-SENT1 is the classified (predicted) result and LIST-SENT2 is the list of golden (correct) sentences.

ERROR-TYPE defines what is considered an error (a false negative). Some usual values are:
- ’(deprel) :: for the deprel tagging task only
- ’(head) :: for considering errors for each syntactic class - ’(deprel head) :: for considering correct only when both deprel and head are correct.

Package

conllu.evaluate.

Source

evaluate.lisp.

Function: query (query sentences)
Package

cl-conllu.

Source

query.lisp.

Function: query-as-json (a-query sentences)
Package

cl-conllu.

Source

query.lisp.

Function: read-conllu (input &key fn-meta)
Package

cl-conllu.

Source

read-write.lisp.

Function: read-directory (path &key fn-meta)
Package

cl-conllu.

Source

read-write.lisp.

Function: read-file (path &key fn-meta)
Package

cl-conllu.

Source

read-write.lisp.

Function: read-file-tag-suffix (filename &key tag separator)
Package

conllu.converters.tags.

Source

tag-converter.lisp.

Function: read-sentence-tag-suffix (stream field separator)

Writes as sentence object input from STREAM as FORM.SEPARATOR.TAGVALUE (without dots), followed by a whitespace character.

Example:

;; Consider the file example.txt, with contents:
;; Pudim_NOUN é_VERB bom_ADJ ._PUNCT
;; E_CONJ torta_NOUN também_ADV ._PUNCT

(with-open-file (s "./example.txt")
(write-conllu-to-stream (read-sentence-tag-suffix s ’upostag "_"))) 1 Pudim _ NOUN _ _ _ _ _ _
2 é _ VERB _ _ _ _ _ _
3 bom _ ADJ _ _ _ _ _ _
4 . _ PUNCT _ _ _ _ _ _

1 E _ CONJ _ _ _ _ _ _
2 torta _ NOUN _ _ _ _ _ _
3 também _ ADV _ _ _ _ _ _
4 . _ PUNCT _ _ _ _ _ _

Package

conllu.converters.tags.

Source

tag-converter.lisp.

Function: read-stream (stream &key fn-meta stop? start-lineno)
Package

cl-conllu.

Source

read-write.lisp.

Function: recall (list-sent1 list-sent2 deprel &key error-type simple-dep)

Restricted to words which are originally of syntactic class (dependency type to head) DEPREL, returns the recall:
the number of true positives divided by the number of words originally positive (that is, originally of class DEPREL).

We assume that LIST-SENT1 is the classified result
and LIST-SENT2 is the list of golden (correct) sentences.

ERROR-TYPE defines what is considered an error (a false negative). Some usual values are:
- ’(deprel) :: for the deprel tagging task only
- ’(head) :: for considering errors for each syntactic class - ’(deprel head) :: for considering correct only when both deprel and head are correct.

Package

conllu.evaluate.

Source

evaluate.lisp.

Function: sentence->text (sentence &key ignore-mtokens special-format-test special-format-function)

Receives SENTENCE, a sentence object, and returns a string reconstructed from its tokens and mtokens.

If IGNORE-MTOKENS, then tokens’ forms are used. Else, tokens with id contained in a mtoken are not used, with mtoken’s form being used instead.

It is possible to special format some tokens. In order to do so, both SPECIAL-FORMAT-TEST and SPECIAL-FORMAT-FUNCTION should be passed. Then for each object (token or mtoken) for which SPECIAL-FORMAT-TEST returns a non-nil result, its form is modified by SPECIAL-FORMAT-FUNCTION in the final string.

Package

cl-conllu.

Source

data.lisp.

Function: sentence-binary-tree (sentence)

Based on the idea from [1], it produces a tree view of the sentence, still need to improve the priorities of children.

Code at https://github.com/sivareddyg/UDepLambda in file src/deplambda/parser/TreeTransformer.java method ’binarizeTree’

[1] Siva Reddy, O. Tackstrom, M. Collins, T. Kwiatkowski, D. Das, M. Steedman, and M. Lapataw, Transforming Dependency Structures to Logical Forms for Semantic Parsing, Transactions of the Association for Computational Linguistics, pp. 127–140, Apr. 2016.

Package

cl-conllu.

Source

data.lisp.

Function: sentence-equal (sent-1 sent-2)

Tests if, for each slot, sent-1 has the same values as sent-2. For tokens and multiword tokens, it uses token-equal and mtoken-equal, respectively.

Package

cl-conllu.

Source

data.lisp.

Function: sentence-fill-offsets (sentence)
Package

cl-conllu.

Source

data.lisp.

Function: sentence-hash-table (sentence)
Package

cl-conllu.

Source

data.lisp.

Function: sentence-id (sentence)
Package

cl-conllu.

Source

data.lisp.

Function: sentence-meta-value (sentence meta-field)
Package

cl-conllu.

Source

data.lisp.

Function: sentence-root (sentence)
Package

cl-conllu.

Source

data.lisp.

Function: sentence-size (sentence)
Package

cl-conllu.

Source

data.lisp.

Function: sentence-text (sentence)
Package

cl-conllu.

Source

data.lisp.

Function: sentence-valid? (sentence)
Package

cl-conllu.

Source

data.lisp.

Function: simple-deprel (deprel)
Package

cl-conllu.

Source

data.lisp.

Function: token-add-feature (token feat val)
Package

cl-conllu.

Source

data.lisp.

Function: token-children (token sentence &key fn-filter)
Package

cl-conllu.

Source

data.lisp.

Function: token-hash-features (token)
Package

cl-conllu.

Source

data.lisp.

Function: token-parent (token sentence)
Package

cl-conllu.

Source

data.lisp.

Function: token-rem-feature (token feat)
Package

cl-conllu.

Source

data.lisp.

Function: tree-sentence (sentence &key fields-or-function stream show-meta)
Package

conllu.draw.

Source

draw.lisp.

Function: tree-sentence-by-id (path id)
Package

conllu.draw.

Source

draw.lisp.

Function: write-conllu (sentences filename &key if-exists)
Package

cl-conllu.

Source

read-write.lisp.

Function: write-conllu-to-stream (sentences &optional out)
Package

cl-conllu.

Source

read-write.lisp.

Function: write-sentence-tag-suffix-to-stream (sentence &key stream tag separator)

Writes sentence as CoNLL-U file in STREAM as FORM.SEPARATOR.TAGVALUE (without
dots), followed by a whitespace character.

If TAG is NIL, then writes only FORMs, followed by a whitespace character.

Example:
;; supposing sentence already defined
(write-sentence-tag-suffix-to-stream (sentence :tag ’xpostag :separator "_")) Pierre_NNP Vinken_NNP ,_, 61_CD years_NNS old_JJ ,_, will_MD join_VB the_DT board_NN as_IN a_DT nonexecutive_JJ director_NN Nov._NNP 29_CD ._.
=> NIL

Package

conllu.converters.tags.

Source

tag-converter.lisp.

Function: write-sentences-tag-suffix (sentences filename &key tag separator if-exists)

See documentation for write-sentence-tag-suffix-to-stream

Package

conllu.converters.tags.

Source

tag-converter.lisp.

Function: write-sentences-tag-suffix-to-stream (sentences &key stream tag separator)

See documentation for write-sentence-tag-suffix-to-stream

Package

conllu.converters.tags.

Source

tag-converter.lisp.


5.1.3 Generic functions

Generic Reader: confusion-matrix-corpus-id (object)
Generic Writer: (setf confusion-matrix-corpus-id) (object)
Package

conllu.evaluate.

Methods
Reader Method: confusion-matrix-corpus-id ((confusion-matrix confusion-matrix))
Writer Method: (setf confusion-matrix-corpus-id) ((confusion-matrix confusion-matrix))

Identifier of the corpus or experiment.

Source

confusion-matrix.lisp.

Target Slot

corpus-id.

Generic Function: format-html (object)

Outputs a HTML string for the object.

Package

conllu.html.

Source

html.lisp.

Methods
Method: format-html ((cm confusion-matrix))
Generic Reader: mtoken-end (object)
Package

cl-conllu.

Methods
Reader Method: mtoken-end ((mtoken mtoken))

automatically generated reader method

Source

data.lisp.

Target Slot

end.

Generic Writer: (setf mtoken-end) (object)
Package

cl-conllu.

Methods
Writer Method: (setf mtoken-end) ((mtoken mtoken))

automatically generated writer method

Source

data.lisp.

Target Slot

end.

Generic Reader: mtoken-start (object)
Package

cl-conllu.

Methods
Reader Method: mtoken-start ((mtoken mtoken))

automatically generated reader method

Source

data.lisp.

Target Slot

start.

Generic Writer: (setf mtoken-start) (object)
Package

cl-conllu.

Methods
Writer Method: (setf mtoken-start) ((mtoken mtoken))

automatically generated writer method

Source

data.lisp.

Target Slot

start.

Generic Reader: sentence-meta (object)
Package

cl-conllu.

Methods
Reader Method: sentence-meta ((sentence sentence))

automatically generated reader method

Source

data.lisp.

Target Slot

meta.

Generic Writer: (setf sentence-meta) (object)
Package

cl-conllu.

Methods
Writer Method: (setf sentence-meta) ((sentence sentence))

automatically generated writer method

Source

data.lisp.

Target Slot

meta.

Generic Reader: sentence-mtokens (object)
Package

cl-conllu.

Methods
Reader Method: sentence-mtokens ((sentence sentence))

automatically generated reader method

Source

data.lisp.

Target Slot

mtokens.

Generic Writer: (setf sentence-mtokens) (object)
Package

cl-conllu.

Methods
Writer Method: (setf sentence-mtokens) ((sentence sentence))

automatically generated writer method

Source

data.lisp.

Target Slot

mtokens.

Generic Reader: sentence-start (object)
Package

cl-conllu.

Methods
Reader Method: sentence-start ((sentence sentence))

automatically generated reader method

Source

data.lisp.

Target Slot

start.

Generic Writer: (setf sentence-start) (object)
Package

cl-conllu.

Methods
Writer Method: (setf sentence-start) ((sentence sentence))

automatically generated writer method

Source

data.lisp.

Target Slot

start.

Generic Reader: sentence-tokens (object)
Package

cl-conllu.

Methods
Reader Method: sentence-tokens ((sentence sentence))

automatically generated reader method

Source

data.lisp.

Target Slot

tokens.

Generic Writer: (setf sentence-tokens) (object)
Package

cl-conllu.

Methods
Writer Method: (setf sentence-tokens) ((sentence sentence))

automatically generated writer method

Source

data.lisp.

Target Slot

tokens.

Generic Reader: token-cfrom (object)
Package

cl-conllu.

Methods
Reader Method: token-cfrom ((abstract-token abstract-token))

automatically generated reader method

Source

data.lisp.

Target Slot

cfrom.

Generic Writer: (setf token-cfrom) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-cfrom) ((abstract-token abstract-token))

automatically generated writer method

Source

data.lisp.

Target Slot

cfrom.

Generic Reader: token-cto (object)
Package

cl-conllu.

Methods
Reader Method: token-cto ((abstract-token abstract-token))

automatically generated reader method

Source

data.lisp.

Target Slot

cto.

Generic Writer: (setf token-cto) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-cto) ((abstract-token abstract-token))

automatically generated writer method

Source

data.lisp.

Target Slot

cto.

Generic Reader: token-deprel (object)
Package

cl-conllu.

Methods
Reader Method: token-deprel ((token token))

automatically generated reader method

Source

data.lisp.

Target Slot

deprel.

Generic Writer: (setf token-deprel) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-deprel) ((token token))

automatically generated writer method

Source

data.lisp.

Target Slot

deprel.

Generic Reader: token-deps (object)
Package

cl-conllu.

Methods
Reader Method: token-deps ((token token))

automatically generated reader method

Source

data.lisp.

Target Slot

deps.

Generic Writer: (setf token-deps) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-deps) ((token token))

automatically generated writer method

Source

data.lisp.

Target Slot

deps.

Generic Reader: token-feats (object)
Package

cl-conllu.

Methods
Reader Method: token-feats ((token token))

automatically generated reader method

Source

data.lisp.

Target Slot

feats.

Generic Writer: (setf token-feats) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-feats) ((token token))

automatically generated writer method

Source

data.lisp.

Target Slot

feats.

Generic Reader: token-form (object)
Package

cl-conllu.

Methods
Reader Method: token-form ((abstract-token abstract-token))

automatically generated reader method

Source

data.lisp.

Target Slot

form.

Generic Writer: (setf token-form) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-form) ((abstract-token abstract-token))

automatically generated writer method

Source

data.lisp.

Target Slot

form.

Generic Reader: token-head (object)
Package

cl-conllu.

Methods
Reader Method: token-head ((token token))

automatically generated reader method

Source

data.lisp.

Target Slot

head.

Generic Writer: (setf token-head) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-head) ((token token))

automatically generated writer method

Source

data.lisp.

Target Slot

head.

Generic Reader: token-id (object)
Package

cl-conllu.

Methods
Reader Method: token-id ((token token))

automatically generated reader method

Source

data.lisp.

Target Slot

id.

Generic Writer: (setf token-id) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-id) ((token token))

automatically generated writer method

Source

data.lisp.

Target Slot

id.

Generic Reader: token-lemma (object)
Package

cl-conllu.

Methods
Reader Method: token-lemma ((token token))

automatically generated reader method

Source

data.lisp.

Target Slot

lemma.

Generic Writer: (setf token-lemma) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-lemma) ((token token))

automatically generated writer method

Source

data.lisp.

Target Slot

lemma.

Generic Reader: token-misc (object)
Package

cl-conllu.

Methods
Reader Method: token-misc ((abstract-token abstract-token))

automatically generated reader method

Source

data.lisp.

Target Slot

misc.

Generic Writer: (setf token-misc) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-misc) ((abstract-token abstract-token))

automatically generated writer method

Source

data.lisp.

Target Slot

misc.

Generic Reader: token-sentence (object)
Package

cl-conllu.

Methods
Reader Method: token-sentence ((abstract-token abstract-token))

automatically generated reader method

Source

data.lisp.

Target Slot

sentence.

Generic Writer: (setf token-sentence) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-sentence) ((abstract-token abstract-token))

automatically generated writer method

Source

data.lisp.

Target Slot

sentence.

Generic Reader: token-upostag (object)
Package

cl-conllu.

Methods
Reader Method: token-upostag ((token token))

automatically generated reader method

Source

data.lisp.

Target Slot

upostag.

Generic Writer: (setf token-upostag) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-upostag) ((token token))

automatically generated writer method

Source

data.lisp.

Target Slot

upostag.

Generic Reader: token-xpostag (object)
Package

cl-conllu.

Methods
Reader Method: token-xpostag ((token token))

automatically generated reader method

Source

data.lisp.

Target Slot

xpostag.

Generic Writer: (setf token-xpostag) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-xpostag) ((token token))

automatically generated writer method

Source

data.lisp.

Target Slot

xpostag.


5.1.4 Standalone methods

Method: encode ((sentence sentence) &optional stream)
Package

yason.

Source

read-write.lisp.

Method: encode ((token token) &optional stream)
Package

yason.

Source

read-write.lisp.

Method: initialize-instance :after ((obj sentence) &key tokens &allow-other-keys)

Sets the TOKEN-SENTENCE slot for each token attributed to the initialize sentence OBJ.

Source

data.lisp.

Method: initialize-instance :after ((obj confusion-matrix) &key &allow-other-keys)
Source

confusion-matrix.lisp.

Method: print-object ((obj sentence) out)
Source

data.lisp.

Method: print-object ((obj token) out)
Source

data.lisp.

Method: print-object ((obj confusion-matrix) out)
Source

confusion-matrix.lisp.


5.1.5 Classes

Class: confusion-matrix
Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Direct methods
Direct slots
Slot: corpus-id

Identifier of the corpus or experiment.

Initargs

:corpus-id

Readers

confusion-matrix-corpus-id.

Writers

(setf confusion-matrix-corpus-id).

Slot: key-fn

Function used to label each token.

Initform

(function cl-conllu:token-upostag)

Initargs

:key-fn

Readers

confusion-matrix-key-fn.

Writers

(setf confusion-matrix-key-fn).

Slot: test-fn

Function which compares two labels. Typically a form of equality.

Initform

(function equal)

Initargs

:test-fn

Readers

confusion-matrix-test-fn.

Writers

(setf confusion-matrix-test-fn).

Slot: sort-fn

Function which sorts labels. By default,
converts labels to string and uses lexicographical order

Initform

(function (lambda (conllu.evaluate::x conllu.evaluate::y) (string<= (format nil "~a" conllu.evaluate::x) (format nil "~a" conllu.evaluate::y))))

Initargs

:sort-fn

Readers

confusion-matrix-sort-fn.

Writers

(setf confusion-matrix-sort-fn).

Slot: rows

Parameter which contains the contents of the confusion matrix.

Readers

confusion-matrix-rows.

Writers

(setf confusion-matrix-rows).

Class: mtoken
Package

cl-conllu.

Source

data.lisp.

Direct superclasses

abstract-token.

Direct methods
Direct slots
Slot: start
Initargs

:start

Readers

mtoken-start.

Writers

(setf mtoken-start).

Slot: end
Initargs

:end

Readers

mtoken-end.

Writers

(setf mtoken-end).

Class: sentence
Package

cl-conllu.

Source

data.lisp.

Direct methods
Direct slots
Slot: start
Initform

0

Initargs

:start

Readers

sentence-start.

Writers

(setf sentence-start).

Slot: meta
Initargs

:meta

Readers

sentence-meta.

Writers

(setf sentence-meta).

Slot: tokens
Initargs

:tokens

Readers

sentence-tokens.

Writers

(setf sentence-tokens).

Slot: mtokens
Initargs

:mtokens

Readers

sentence-mtokens.

Writers

(setf sentence-mtokens).

Slot: etokens
Initargs

:etokens

Readers

sentence-etokens.

Writers

(setf sentence-etokens).

Class: token
Package

cl-conllu.

Source

data.lisp.

Direct superclasses

abstract-token.

Direct methods
Direct slots
Slot: id
Initargs

:id

Readers

token-id.

Writers

(setf token-id).

Slot: lemma
Initargs

:lemma

Readers

token-lemma.

Writers

(setf token-lemma).

Slot: upostag
Initform

"_"

Initargs

:upostag

Readers

token-upostag.

Writers

(setf token-upostag).

Slot: xpostag
Initform

"_"

Initargs

:xpostag

Readers

token-xpostag.

Writers

(setf token-xpostag).

Slot: feats
Initform

"_"

Initargs

:feats

Readers

token-feats.

Writers

(setf token-feats).

Slot: head
Initform

"_"

Initargs

:head

Readers

token-head.

Writers

(setf token-head).

Slot: deprel
Initform

"_"

Initargs

:deprel

Readers

token-deprel.

Writers

(setf token-deprel).

Slot: deps
Initform

"_"

Initargs

:deps

Readers

token-deps.

Writers

(setf token-deps).


5.2 Internals


5.2.1 Special variables

Special Variable: *clauses*
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Special Variable: *dependencies*
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Special Variable: *deprel-value-list*

List of the 37 universal syntactic relations in UD.

Package

conllu.evaluate.

Source

evaluate.lisp.

Special Variable: *deprels*
Package

cl-conllu.

Source

query.lisp.

Special Variable: *token-fields*
Package

cl-conllu.

Source

data.lisp.

Special Variable: *token-fields*
Package

conllu.evaluate.

Source

evaluate.lisp.


5.2.2 Macros

Macro: error-test (expression)
Package

conllu.editor.

Source

editor.lisp.


5.2.3 Ordinary functions

Function: action (expression)
Package

conllu.editor.

Source

editor.lisp.

Function: actions (actions)
Package

conllu.editor.

Source

editor.lisp.

Function: add-or-subt (op field token value)
Package

conllu.editor.

Source

editor.lisp.

Function: add-value (field new-value token rest-conditions)
Package

conllu.rules.

Source

rules.lisp.

Function: adjust-conllu (input output)
Package

cl-conllu.

Source

command-line.lisp.

Function: adopted-unfinished? (lines ids)
Package

conllu.draw.

Source

draw.lisp.

Function: and% (query1 query2 &key tks)
Package

cl-conllu.

Source

query.lisp.

Function: apply-act (result-act)
Package

conllu.editor.

Source

editor.lisp.

Function: apply-changes (tokens rule)
Package

conllu.rules.

Source

rules.lisp.

Function: apply-conditions-in-token (conditions token)
Package

conllu.rules.

Source

rules.lisp.

Function: apply-rhs (bindings rhs)
Package

conllu.rules.

Source

rules.lisp.

Function: apply-rule (tokens sent-id rule rule-index)
Package

conllu.editor.

Source

editor.lisp.

Function: apply-rule-in-sentence (a-sentence rule sent-id)
Package

conllu.rules.

Source

rules.lisp.

Function: apply-rule-in-tokens (tokens rule sent-id &optional matchs)
Package

conllu.rules.

Source

rules.lisp.

Function: apply-rules (tokens sent-id rules errors &optional index acum-records)
Package

conllu.editor.

Source

editor.lisp.

Function: apply-rules-in-sentence (a-sentence rules sent-id recursive &optional old-rules-applied)
Package

conllu.rules.

Source

rules.lisp.

Function: apply-rules-in-sentence-aux (a-sentence rules sent-id &optional applied?)
Package

conllu.rules.

Source

rules.lisp.

Function: assocs (value sets field tokens &optional ids result-tokens old-fields)
Package

conllu.editor.

Source

editor.lisp.

Function: blank-line? (line)
Package

cl-conllu.

Source

utils.lisp.

Function: children (tks id)
Package

cl-conllu.

Source

query.lisp.

Function: clean-dep-rel (str)
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Function: clean-whitespace (line)
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Function: clear (string)
Package

conllu.editor.

Source

editor.lisp.

Function: collect-meta (lines)
Package

cl-conllu.

Source

read-write.lisp.

Function: components->string (components)
Package

conllu.rdf.

Source

rdf.lisp.

Function: confusion-matrix-copy (cm)

Returns a new CONFUSION-MATRIX with the same cells values as CM.

Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: confusion-matrix-update-sentences (sent1 sent2 cm)

Updates an existing confusion matrix by a pair of matching sentences SENT1 and SENT2. That is, SENT1 and SENT2 should be alternative analyses of the same natural language sentence.

Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: confusion-matrix-update-tokens (token1 token2 cm)
Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: convert-features-to-rdf (features-string)

Input: string
Output: list of feature nodes

Returns a list of nodes to be used as objects in triples with the predicate "conll:feats".

Examples:
(let ((wilbur:*nodes* (make-instance ’wilbur:dictionary))
(wilbur:*db* (make-instance ’wilbur:db)))
(wilbur:add-namespace "olia-sys" "http://purl.org/olia/system.owl#") (wilbur:add-namespace "conll" "http://br.ibm.com/conll/LEMMA") (convert-features-to-rdf "Mood=Ind|Tense=Past|VerbForm=Fin" (node "sentence1"))) =>
(!"http://br.ibm.com/conll/LEMMA#verbFormFin" !"http://br.ibm.com/conll/LEMMA#tensePast" !"http://br.ibm.com/conll/LEMMA#moodInd")

Package

conllu.rdf.

Source

rdf-wilbur.lisp.

Function: convert-sentence-metadata (metadata sentence-node)

Input: list of pairs (name value), node
Output: List of triples

Example:
(let ((wilbur:*db* (make-instance ’wilbur:db))
(metadata ’(("sent_id" . "test")
("text" . "The US troops fired into the hostile crowd, killing 4.")))
(sentence-node (node "sentence")))
(convert-sentence-metadata metadata sentence-node))
=>
((#<WILBUR:TRIPLE !"sentence" !conll:metadata/sent_id #"test" {10048AA2E3}>)
(#<WILBUR:TRIPLE !"sentence" !conll:metadata/text #"The US troops fired into the hostile crowd, killing 4." {10048AA753}>))

Package

conllu.rdf.

Source

rdf-wilbur.lisp.

Function: convert-sentence-to-rdf (sentence text sentence-id corpus-id-node)
Package

conllu.rdf.

Source

rdf-wilbur.lisp.

Function: convert-sentence-to-turtle (stream conll text id)
Package

conllu.rdf.

Source

rdf.lisp.

Function: convert-token-to-rdf (token sentence-id sentence-node)
Package

conllu.rdf.

Source

rdf-wilbur.lisp.

Function: create-cell (label1 label2 cm)

Creates the cell for row LABEL1 and column LABEL2 in confusion matrix CM.

Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: def-match (def)
Package

conllu.editor.

Source

editor.lisp.

Function: definitions (definitions &optional index result-defs)
Package

conllu.editor.

Source

editor.lisp.

Function: defs-tests (token defs)
Package

conllu.editor.

Source

editor.lisp.

Function: draw-conllu (input output)
Package

cl-conllu.

Source

command-line.lisp.

Function: emit-prolog (clause text)
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Function: equal-op (field regex rest-pattern token)
Package

conllu.rules.

Source

rules.lisp.

Function: escape-string (string char-escape-function)
Package

conllu.rdf.

Source

rdf.lisp.

Function: escape-turtle-char (char)
Package

conllu.rdf.

Source

rdf.lisp.

Function: eval-query (expression &key tks)
Package

cl-conllu.

Source

query.lisp.

Function: exact-match-sentence (sent1 sent2 &key compared-fields identity-fields test simple-dep ignore-punct)

Compares if two sentences are an exact match.

The typical use case is comparing the result of a tagger (or parser) against a test sentence.

Returns SENT1 if SENT1 and SENT2 agree for all tokens with respect to the COMPARED-FIELDS. Otherwise returns NIL.

If they do not have the same number of tokens or if the tokens do not agree on each IDENTITY-FIELD, then the sentences are not ’the same’ and thus an error is returned.

Package

conllu.evaluate.

Source

evaluate.lisp.

Function: examine-acts (final-acts &optional not-fst)
Package

conllu.editor.

Source

editor.lisp.

Function: existing-cell-p (label1 label2 cm)

Predicate for verifying whether the cell for row LABEL1 and column LABEL2 already exist in the confusion matrix CM.

Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: find-min (list &key min)
Package

cl-conllu.

Source

utils.lisp.

Function: get-data (fields-or-function tokens id)
Package

conllu.draw.

Source

draw.lisp.

Function: get-field-value (field token)
Package

conllu.editor.

Source

editor.lisp.

Function: get-kids (dad tokens &optional stock? child adopted infant)
Package

conllu.draw.

Source

draw.lisp.

Function: get-projection (token sentence)
Package

cl-conllu.

Source

projective.lisp.

Function: get-stroke-size (adopted lines)
Package

conllu.draw.

Source

draw.lisp.

Function: hash-to-features (tb)
Package

cl-conllu.

Source

data.lisp.

Function: insert-at (lst index newelt)
Package

cl-conllu.

Source

utils.lisp.

Function: insert-entry-confusion-matrix (label1 label2 token cm)

Inserts TOKEN as an occurence in the cell LABEL1 LABEL2 of the confusion matrix CM.

Package

conllu.evaluate.

Source

confusion-matrix.lisp.

Function: intern-pattern (pattern)
Package

conllu.rules.

Source

rules.lisp.

Function: intern-rule (rule)
Package

conllu.rules.

Source

rules.lisp.

Function: intern-sides (sides)
Package

conllu.rules.

Source

rules.lisp.

Function: is-descendant? (id-1 id-2 sentence &optional alist)
Package

cl-conllu.

Source

data.lisp.

Function: is-root (str)
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Function: is-sentence-projective (sentence)
Package

cl-conllu.

Source

projective.lisp.

Function: is-token-projective (token sentence)
Package

cl-conllu.

Source

projective.lisp.

Function: join-matchs (defs-count rels-count sets)
Package

conllu.editor.

Source

editor.lisp.

Function: line->token (line lineno)
Package

cl-conllu.

Source

read-write.lisp.

Function: make-dep (dep)
Package

conllu.rdf.

Source

rdf.lisp.

Function: make-featurename (feat)
Package

conllu.rdf.

Source

rdf.lisp.

Function: make-features (features &optional value-as-literal)
Package

conllu.rdf.

Source

rdf.lisp.

Function: make-features-bnode (features &optional value-as-literal)
Package

conllu.rdf.

Source

rdf.lisp.

Function: make-id (context prefix id)
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Function: make-literal (string)
Package

conllu.rdf.

Source

rdf.lisp.

Function: make-metadata (metadata)
Package

conllu.rdf.

Source

rdf.lisp.

Function: make-metadata-bnode (metadata)
Package

conllu.rdf.

Source

rdf.lisp.

Function: make-token-id (sentence-id token-id)
Package

conllu.rdf.

Source

rdf.lisp.

Function: make-tree (fields-or-function tokens lines branches &optional branches-alt)
Package

conllu.draw.

Source

draw.lisp.

Function: make-twigs (data dad child adopted lines)
Package

conllu.draw.

Source

draw.lisp.

Function: make-upos (upos)
Package

conllu.rdf.

Source

rdf.lisp.

Function: mappend (function list)

Receives a function and a list of lists and returns the appended result of the aplication of the function to each list.

Package

cl-conllu.

Source

utils.lisp.

Function: match-test (value criterion negative? op)
Package

conllu.editor.

Source

editor.lisp.

Function: match-token (token pattern)
Package

conllu.rules.

Source

rules.lisp.

Function: match? (tokens rls &optional bindings)
Package

conllu.rules.

Source

rules.lisp.

Function: member-op (field element rest-pattern token)
Package

conllu.rules.

Source

rules.lisp.

Function: merge-matchs (defs-count rels-count bin-1 bin-2)
Package

conllu.editor.

Source

editor.lisp.

Function: merge-sets (defs-count rels-count sets)
Package

conllu.editor.

Source

editor.lisp.

Function: modify-conllu (original-file changes-file output &optional add-news)

The original file contains a set of sentences. The modified file contains some sentences from original modified, this function replaces in original the sentences presented in modified file, matching them using the sentence ids. If the modified file contains sentence not in original, the flag ’add-new’ , if true, says that these sentence must be added in the end of the original file.

Package

cl-conllu.

Source

command-line.lisp.

Function: modify-value (field new-value token rest-conditions)
Package

conllu.rules.

Source

rules.lisp.

Function: mtoken-equal (mtoken-1 mtoken-2)

Tests if, for each slot, mtoken-1 has the same values as mtoken-2.

Package

cl-conllu.

Source

data.lisp.

Function: multiple-merges (defs-count rels-count bin-1 bins)
Package

conllu.editor.

Source

editor.lisp.

Function: node-matchs (tokens defs &optional result-nodes)
Package

conllu.editor.

Source

editor.lisp.

Function: non-projective-punct (sentence)
Package

cl-conllu.

Source

projective.lisp.

Function: normalize-shortcut (expression op)
Package

conllu.editor.

Source

editor.lisp.

Function: or% (query1 query2 &key tks)
Package

cl-conllu.

Source

query.lisp.

Function: parse-field (line field value)
Package

cl-conllu.

Source

read-write.lisp.

Function: print-diff (matriz)
Package

cl-conllu.

Source

utils.lisp.

Function: process-features (sentence-id word-index-id feats-str)
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Function: process-tokens (context sentence-id token)
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Function: prolog-string (str &optional downcase)
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Function: range (a b)
Package

cl-conllu.

Source

utils.lisp.

Function: read-rules (filename)
Package

conllu.rules.

Source

rules.lisp.

Function: regex-op (field regex rest-pattern token)
Package

conllu.rules.

Source

rules.lisp.

Function: rel-match (nodes rel rel-index)
Package

conllu.editor.

Source

editor.lisp.

Function: relation (relation)
Package

conllu.editor.

Source

editor.lisp.

Function: relation-test (negative? op field-1 field-2)
Package

conllu.editor.

Source

editor.lisp.

Function: relations (relations)
Package

conllu.editor.

Source

editor.lisp.

Function: result-act (sets tokens act)
Package

conllu.editor.

Source

editor.lisp.

Function: result-acts (sets tokens acts &optional result-acts)
Package

conllu.editor.

Source

editor.lisp.

Function: result-set (token-1 token-2 def-1 def-2 rel-test rel-index)
Package

conllu.editor.

Source

editor.lisp.

Function: result-sets (rel-test rel-index def-1 def-2 nodes-1 nodes-2)
Package

conllu.editor.

Source

editor.lisp.

Function: rhs (rule)
Package

conllu.rules.

Source

rules.lisp.

Function: rhs-vars (rls-vars rhs)
Package

conllu.rules.

Source

rules.lisp.

Function: rls (rule)
Package

conllu.rules.

Source

rules.lisp.

Function: rls-vars (rls &optional var-list)
Package

conllu.rules.

Source

rules.lisp.

Function: r~ (relation query1 query2 &key tks)
Package

cl-conllu.

Source

query.lisp.

Function: select-sentence (id sentences)
Package

cl-conllu.

Source

command-line.lisp.

Function: sentence-average-score (list-sent1 list-sent2 &key fields ignore-punct simple-dep)

Score by sentence (macro-average).

This is the mean of the percentage of words in each sentence that are correct with respect to the fields in FIELDS.

We assume that LIST-SENT1 is the classified result
and LIST-SENT2 is the list of golden (correct) sentences.

If IGNORE-PUNCT, tokens which have ’PUNCT’ as upostag
in the golden sentences are ignored.

Package

conllu.evaluate.

Source

evaluate.lisp.

Function: sentence-by-id (id filename)
Package

cl-conllu.

Source

data.lisp.

Function: sentence-diff (sent1 sent2 &key fields test simple-dep ignore-punct)

Returns a list of differences in SENT1 and SENT2.

They must have the same size.

If IGNORE-PUNCT, tokens which have ’PUNCT’ as upostag in sent2 are ignored.

Package

conllu.evaluate.

Source

evaluate.lisp.

Function: sentence-get-token-by-id (sentence id)
Package

cl-conllu.

Source

data.lisp.

Function: sentence-matrix (sentence)
Package

cl-conllu.

Source

data.lisp.

Function: set-head (sentence id new-head &optional deprel)
Package

cl-conllu.

Source

data.lisp.

Function: sets (nodes rels &optional rel-index result-sets)
Package

conllu.editor.

Source

editor.lisp.

Function: test-feats&misc (string-1 string-2)
Package

conllu.editor.

Source

editor.lisp.

Function: token-attached (tk sentence)
Package

cl-conllu.

Source

data.lisp.

Function: token-diff (tk1 tk2 &key fields test simple-dep)
Package

conllu.evaluate.

Source

evaluate.lisp.

Function: token-equal (tk1 tk2 &key fields test simple-dep)
Package

cl-conllu.

Source

data.lisp.

Function: token-matchs (def tokens)
Package

conllu.editor.

Source

editor.lisp.

Function: token-misc-value (token misc-key)

Assume token’s MISC is a list of key-value pairs, return value corresponding to key MISC-KEY.

Package

cl-conllu.

Source

data.lisp.

Function: toprologid (str)
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Function: t~ (slot string &key tks)
Package

cl-conllu.

Source

query.lisp.

Function: unspecified-field? (c)
Package

conllu.rdf.

Source

rdf.lisp.

Function: update-lines (id text lines &optional size char)
Package

conllu.draw.

Source

draw.lisp.

Function: valid-line (line)
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Function: valid-vars (rule)
Package

conllu.rules.

Source

rules.lisp.

Function: variable-p (x)
Package

conllu.rules.

Source

rules.lisp.

Function: word-average-score (list-sent1 list-sent2 &key fields ignore-punct simple-dep)

Score by word (micro-average).

This is the total mean of words in all sentences that are correct with respect to the fields in FIELDS.

We assume that LIST-SENT1 is the classified result and LIST-SENT2 is the list of golden (correct) sentences.

If IGNORE-PUNCT, tokens which have ’PUNCT’ as upostag in the golden sentences are ignored.

Package

conllu.evaluate.

Source

evaluate.lisp.

Function: write-columns-headers (column-labels)

Auxiliary function for format-html for confusion-matrix.

Package

conllu.html.

Source

html.lisp.

Function: write-prolog (out)
Package

conllu.prolog.

Source

conllu-prolog.lisp.

Function: write-rows (row-labels column-labels cm)

Auxiliary function for format-html for the confusion-matrix CM.

Package

conllu.html.

Source

html.lisp.

Function: write-selected-sentence (filename id output)

Returns a sentence whose ’sent_id’ from the list of sentences in ’filename’.

Package

cl-conllu.

Source

command-line.lisp.

Function: write-sentence (sentence stream)
Package

cl-conllu.

Source

read-write.lisp.

Function: write-token-tag-suffix (token stream field-value separator)
Package

conllu.converters.tags.

Source

tag-converter.lisp.


5.2.4 Generic functions

Generic Reader: confusion-matrix-key-fn (object)
Generic Writer: (setf confusion-matrix-key-fn) (object)
Package

conllu.evaluate.

Methods
Reader Method: confusion-matrix-key-fn ((confusion-matrix confusion-matrix))
Writer Method: (setf confusion-matrix-key-fn) ((confusion-matrix confusion-matrix))

Function used to label each token.

Source

confusion-matrix.lisp.

Target Slot

key-fn.

Generic Reader: confusion-matrix-rows (object)
Generic Writer: (setf confusion-matrix-rows) (object)
Package

conllu.evaluate.

Methods
Reader Method: confusion-matrix-rows ((confusion-matrix confusion-matrix))
Writer Method: (setf confusion-matrix-rows) ((confusion-matrix confusion-matrix))

Parameter which contains the contents of the confusion matrix.

Source

confusion-matrix.lisp.

Target Slot

rows.

Generic Reader: confusion-matrix-sort-fn (object)
Generic Writer: (setf confusion-matrix-sort-fn) (object)
Package

conllu.evaluate.

Methods
Reader Method: confusion-matrix-sort-fn ((confusion-matrix confusion-matrix))
Writer Method: (setf confusion-matrix-sort-fn) ((confusion-matrix confusion-matrix))

Function which sorts labels. By default,
converts labels to string and uses lexicographical order

Source

confusion-matrix.lisp.

Target Slot

sort-fn.

Generic Reader: confusion-matrix-test-fn (object)
Generic Writer: (setf confusion-matrix-test-fn) (object)
Package

conllu.evaluate.

Methods
Reader Method: confusion-matrix-test-fn ((confusion-matrix confusion-matrix))
Writer Method: (setf confusion-matrix-test-fn) ((confusion-matrix confusion-matrix))

Function which compares two labels. Typically a form of equality.

Source

confusion-matrix.lisp.

Target Slot

test-fn.

Generic Reader: etoken-deps (object)
Package

cl-conllu.

Methods
Reader Method: etoken-deps ((etoken etoken))

automatically generated reader method

Source

data.lisp.

Target Slot

deps.

Generic Writer: (setf etoken-deps) (object)
Package

cl-conllu.

Methods
Writer Method: (setf etoken-deps) ((etoken etoken))

automatically generated writer method

Source

data.lisp.

Target Slot

deps.

Generic Reader: etoken-feats (object)
Package

cl-conllu.

Methods
Reader Method: etoken-feats ((etoken etoken))

automatically generated reader method

Source

data.lisp.

Target Slot

feats.

Generic Writer: (setf etoken-feats) (object)
Package

cl-conllu.

Methods
Writer Method: (setf etoken-feats) ((etoken etoken))

automatically generated writer method

Source

data.lisp.

Target Slot

feats.

Generic Reader: etoken-index (object)
Package

cl-conllu.

Methods
Reader Method: etoken-index ((etoken etoken))

automatically generated reader method

Source

data.lisp.

Target Slot

index.

Generic Writer: (setf etoken-index) (object)
Package

cl-conllu.

Methods
Writer Method: (setf etoken-index) ((etoken etoken))

automatically generated writer method

Source

data.lisp.

Target Slot

index.

Generic Reader: etoken-lemma (object)
Package

cl-conllu.

Methods
Reader Method: etoken-lemma ((etoken etoken))

automatically generated reader method

Source

data.lisp.

Target Slot

lemma.

Generic Writer: (setf etoken-lemma) (object)
Package

cl-conllu.

Methods
Writer Method: (setf etoken-lemma) ((etoken etoken))

automatically generated writer method

Source

data.lisp.

Target Slot

lemma.

Generic Reader: etoken-prev (object)
Package

cl-conllu.

Methods
Reader Method: etoken-prev ((etoken etoken))

automatically generated reader method

Source

data.lisp.

Target Slot

prev.

Generic Writer: (setf etoken-prev) (object)
Package

cl-conllu.

Methods
Writer Method: (setf etoken-prev) ((etoken etoken))

automatically generated writer method

Source

data.lisp.

Target Slot

prev.

Generic Reader: etoken-upostag (object)
Package

cl-conllu.

Methods
Reader Method: etoken-upostag ((etoken etoken))

automatically generated reader method

Source

data.lisp.

Target Slot

upostag.

Generic Writer: (setf etoken-upostag) (object)
Package

cl-conllu.

Methods
Writer Method: (setf etoken-upostag) ((etoken etoken))

automatically generated writer method

Source

data.lisp.

Target Slot

upostag.

Generic Reader: etoken-xpostag (object)
Package

cl-conllu.

Methods
Reader Method: etoken-xpostag ((etoken etoken))

automatically generated reader method

Source

data.lisp.

Target Slot

xpostag.

Generic Writer: (setf etoken-xpostag) (object)
Package

cl-conllu.

Methods
Writer Method: (setf etoken-xpostag) ((etoken etoken))

automatically generated writer method

Source

data.lisp.

Target Slot

xpostag.

Generic Reader: index (condition)
Package

conllu.editor.

Methods
Reader Method: index ((condition malformed-rule))
Source

editor.lisp.

Target Slot

index.

Generic Reader: sentence-etokens (object)
Package

cl-conllu.

Methods
Reader Method: sentence-etokens ((sentence sentence))

automatically generated reader method

Source

data.lisp.

Target Slot

etokens.

Generic Writer: (setf sentence-etokens) (object)
Package

cl-conllu.

Methods
Writer Method: (setf sentence-etokens) ((sentence sentence))

automatically generated writer method

Source

data.lisp.

Target Slot

etokens.

Generic Reader: token-lineno (object)
Package

cl-conllu.

Methods
Reader Method: token-lineno ((abstract-token abstract-token))

automatically generated reader method

Source

data.lisp.

Target Slot

lineno.

Generic Writer: (setf token-lineno) (object)
Package

cl-conllu.

Methods
Writer Method: (setf token-lineno) ((abstract-token abstract-token))

automatically generated writer method

Source

data.lisp.

Target Slot

lineno.

Generic Function: write-token (abstract-token stream)

write a token to a line in 10 tab-separated columns.

Package

cl-conllu.

Source

read-write.lisp.

Methods
Method: write-token ((tk etoken) stream)
Method: write-token ((tk mtoken) stream)
Method: write-token ((tk token) stream)

5.2.5 Conditions

Condition: malformed-field
Package

cl-conllu.

Source

read-write.lisp.

Direct superclasses

error.

Direct slots
Slot: line
Initargs

:line

Slot: field
Initargs

:field

Slot: value
Initargs

:value

Condition: malformed-line
Package

cl-conllu.

Source

read-write.lisp.

Direct superclasses

error.

Direct slots
Slot: line
Initargs

:line

Slot: message
Initargs

:message

Condition: malformed-rule
Package

conllu.editor.

Source

editor.lisp.

Direct superclasses

error.

Direct methods

index.

Direct slots
Slot: index
Initargs

:index

Readers

index.

Writers

This slot is read-only.


5.2.6 Classes

Class: abstract-token
Package

cl-conllu.

Source

data.lisp.

Direct subclasses
Direct methods
Direct slots
Slot: sentence
Readers

token-sentence.

Writers

(setf token-sentence).

Slot: lineno
Initargs

:lineno

Readers

token-lineno.

Writers

(setf token-lineno).

Slot: form
Initargs

:form

Readers

token-form.

Writers

(setf token-form).

Slot: cfrom
Initform

-1

Initargs

:cfrom

Readers

token-cfrom.

Writers

(setf token-cfrom).

Slot: cto
Initform

-1

Initargs

:cto

Readers

token-cto.

Writers

(setf token-cto).

Slot: misc
Initform

"_"

Initargs

:misc

Readers

token-misc.

Writers

(setf token-misc).

Class: etoken
Package

cl-conllu.

Source

data.lisp.

Direct superclasses

abstract-token.

Direct methods
Direct slots
Slot: prev
Initargs

:prev

Readers

etoken-prev.

Writers

(setf etoken-prev).

Slot: index
Initargs

:index

Readers

etoken-index.

Writers

(setf etoken-index).

Slot: lemma
Initargs

:lemma

Readers

etoken-lemma.

Writers

(setf etoken-lemma).

Slot: upostag
Initform

"_"

Initargs

:upostag

Readers

etoken-upostag.

Writers

(setf etoken-upostag).

Slot: xpostag
Initform

"_"

Initargs

:xpostag

Readers

etoken-xpostag.

Writers

(setf etoken-xpostag).

Slot: feats
Initform

"_"

Initargs

:feats

Readers

etoken-feats.

Writers

(setf etoken-feats).

Slot: deps
Initform

"_"

Initargs

:deps

Readers

etoken-deps.

Writers

(setf etoken-deps).


Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   (  
A   B   C   D   E   F   G   H   I   J   L   M   N   O   P   Q   R   S   T   U   V   W  
Index Entry  Section

(
(setf confusion-matrix-corpus-id): Public generic functions
(setf confusion-matrix-corpus-id): Public generic functions
(setf confusion-matrix-key-fn): Private generic functions
(setf confusion-matrix-key-fn): Private generic functions
(setf confusion-matrix-rows): Private generic functions
(setf confusion-matrix-rows): Private generic functions
(setf confusion-matrix-sort-fn): Private generic functions
(setf confusion-matrix-sort-fn): Private generic functions
(setf confusion-matrix-test-fn): Private generic functions
(setf confusion-matrix-test-fn): Private generic functions
(setf etoken-deps): Private generic functions
(setf etoken-deps): Private generic functions
(setf etoken-feats): Private generic functions
(setf etoken-feats): Private generic functions
(setf etoken-index): Private generic functions
(setf etoken-index): Private generic functions
(setf etoken-lemma): Private generic functions
(setf etoken-lemma): Private generic functions
(setf etoken-prev): Private generic functions
(setf etoken-prev): Private generic functions
(setf etoken-upostag): Private generic functions
(setf etoken-upostag): Private generic functions
(setf etoken-xpostag): Private generic functions
(setf etoken-xpostag): Private generic functions
(setf mtoken-end): Public generic functions
(setf mtoken-end): Public generic functions
(setf mtoken-start): Public generic functions
(setf mtoken-start): Public generic functions
(setf sentence-etokens): Private generic functions
(setf sentence-etokens): Private generic functions
(setf sentence-meta): Public generic functions
(setf sentence-meta): Public generic functions
(setf sentence-mtokens): Public generic functions
(setf sentence-mtokens): Public generic functions
(setf sentence-start): Public generic functions
(setf sentence-start): Public generic functions
(setf sentence-tokens): Public generic functions
(setf sentence-tokens): Public generic functions
(setf token-cfrom): Public generic functions
(setf token-cfrom): Public generic functions
(setf token-cto): Public generic functions
(setf token-cto): Public generic functions
(setf token-deprel): Public generic functions
(setf token-deprel): Public generic functions
(setf token-deps): Public generic functions
(setf token-deps): Public generic functions
(setf token-feats): Public generic functions
(setf token-feats): Public generic functions
(setf token-form): Public generic functions
(setf token-form): Public generic functions
(setf token-head): Public generic functions
(setf token-head): Public generic functions
(setf token-id): Public generic functions
(setf token-id): Public generic functions
(setf token-lemma): Public generic functions
(setf token-lemma): Public generic functions
(setf token-lineno): Private generic functions
(setf token-lineno): Private generic functions
(setf token-misc): Public generic functions
(setf token-misc): Public generic functions
(setf token-sentence): Public generic functions
(setf token-sentence): Public generic functions
(setf token-upostag): Public generic functions
(setf token-upostag): Public generic functions
(setf token-xpostag): Public generic functions
(setf token-xpostag): Public generic functions

A
action: Private ordinary functions
actions: Private ordinary functions
add-or-subt: Private ordinary functions
add-value: Private ordinary functions
adjust-conllu: Private ordinary functions
adjust-sentence: Public ordinary functions
adopted-unfinished?: Private ordinary functions
and%: Private ordinary functions
apply-act: Private ordinary functions
apply-changes: Private ordinary functions
apply-conditions-in-token: Private ordinary functions
apply-rhs: Private ordinary functions
apply-rule: Private ordinary functions
apply-rule-in-sentence: Private ordinary functions
apply-rule-in-tokens: Private ordinary functions
apply-rules: Public ordinary functions
apply-rules: Private ordinary functions
apply-rules-from-files: Public ordinary functions
apply-rules-in-sentence: Private ordinary functions
apply-rules-in-sentence-aux: Private ordinary functions
assocs: Private ordinary functions
attachment-score-by-sentence: Public ordinary functions
attachment-score-by-word: Public ordinary functions

B
blank-line?: Private ordinary functions

C
children: Private ordinary functions
clean-dep-rel: Private ordinary functions
clean-whitespace: Private ordinary functions
clear: Private ordinary functions
collect-meta: Private ordinary functions
components->string: Private ordinary functions
confusion-matrix-cell-count: Public ordinary functions
confusion-matrix-cell-tokens: Public ordinary functions
confusion-matrix-cells-labels: Public ordinary functions
confusion-matrix-columns-labels: Public ordinary functions
confusion-matrix-copy: Private ordinary functions
confusion-matrix-corpus-id: Public generic functions
confusion-matrix-corpus-id: Public generic functions
confusion-matrix-key-fn: Private generic functions
confusion-matrix-key-fn: Private generic functions
confusion-matrix-labels: Public ordinary functions
confusion-matrix-normalize: Public ordinary functions
confusion-matrix-rows: Private generic functions
confusion-matrix-rows: Private generic functions
confusion-matrix-rows-labels: Public ordinary functions
confusion-matrix-sort-fn: Private generic functions
confusion-matrix-sort-fn: Private generic functions
confusion-matrix-test-fn: Private generic functions
confusion-matrix-test-fn: Private generic functions
confusion-matrix-update: Public ordinary functions
confusion-matrix-update-sentences: Private ordinary functions
confusion-matrix-update-tokens: Private ordinary functions
conlluedit: Public ordinary functions
convert-features-to-rdf: Private ordinary functions
convert-filename: Public ordinary functions
convert-rdf: Public ordinary functions
convert-rdf-file: Public ordinary functions
convert-sentence-metadata: Private ordinary functions
convert-sentence-to-rdf: Private ordinary functions
convert-sentence-to-turtle: Private ordinary functions
convert-to-rdf: Public ordinary functions
convert-token-to-rdf: Private ordinary functions
create-cell: Private ordinary functions

D
def-match: Private ordinary functions
definitions: Private ordinary functions
defs-tests: Private ordinary functions
diff: Public ordinary functions
draw-conllu: Private ordinary functions

E
emit-prolog: Private ordinary functions
encode: Public standalone methods
encode: Public standalone methods
equal-op: Private ordinary functions
error-test: Private macros
escape-string: Private ordinary functions
escape-turtle-char: Private ordinary functions
etoken-deps: Private generic functions
etoken-deps: Private generic functions
etoken-feats: Private generic functions
etoken-feats: Private generic functions
etoken-index: Private generic functions
etoken-index: Private generic functions
etoken-lemma: Private generic functions
etoken-lemma: Private generic functions
etoken-prev: Private generic functions
etoken-prev: Private generic functions
etoken-upostag: Private generic functions
etoken-upostag: Private generic functions
etoken-xpostag: Private generic functions
etoken-xpostag: Private generic functions
eval-query: Private ordinary functions
exact-match: Public ordinary functions
exact-match-score: Public ordinary functions
exact-match-sentence: Private ordinary functions
examine-acts: Private ordinary functions
existing-cell-p: Private ordinary functions

F
find-min: Private ordinary functions
format-html: Public generic functions
format-html: Public generic functions
Function, action: Private ordinary functions
Function, actions: Private ordinary functions
Function, add-or-subt: Private ordinary functions
Function, add-value: Private ordinary functions
Function, adjust-conllu: Private ordinary functions
Function, adjust-sentence: Public ordinary functions
Function, adopted-unfinished?: Private ordinary functions
Function, and%: Private ordinary functions
Function, apply-act: Private ordinary functions
Function, apply-changes: Private ordinary functions
Function, apply-conditions-in-token: Private ordinary functions
Function, apply-rhs: Private ordinary functions
Function, apply-rule: Private ordinary functions
Function, apply-rule-in-sentence: Private ordinary functions
Function, apply-rule-in-tokens: Private ordinary functions
Function, apply-rules: Public ordinary functions
Function, apply-rules: Private ordinary functions
Function, apply-rules-from-files: Public ordinary functions
Function, apply-rules-in-sentence: Private ordinary functions
Function, apply-rules-in-sentence-aux: Private ordinary functions
Function, assocs: Private ordinary functions
Function, attachment-score-by-sentence: Public ordinary functions
Function, attachment-score-by-word: Public ordinary functions
Function, blank-line?: Private ordinary functions
Function, children: Private ordinary functions
Function, clean-dep-rel: Private ordinary functions
Function, clean-whitespace: Private ordinary functions
Function, clear: Private ordinary functions
Function, collect-meta: Private ordinary functions
Function, components->string: Private ordinary functions
Function, confusion-matrix-cell-count: Public ordinary functions
Function, confusion-matrix-cell-tokens: Public ordinary functions
Function, confusion-matrix-cells-labels: Public ordinary functions
Function, confusion-matrix-columns-labels: Public ordinary functions
Function, confusion-matrix-copy: Private ordinary functions
Function, confusion-matrix-labels: Public ordinary functions
Function, confusion-matrix-normalize: Public ordinary functions
Function, confusion-matrix-rows-labels: Public ordinary functions
Function, confusion-matrix-update: Public ordinary functions
Function, confusion-matrix-update-sentences: Private ordinary functions
Function, confusion-matrix-update-tokens: Private ordinary functions
Function, conlluedit: Public ordinary functions
Function, convert-features-to-rdf: Private ordinary functions
Function, convert-filename: Public ordinary functions
Function, convert-rdf: Public ordinary functions
Function, convert-rdf-file: Public ordinary functions
Function, convert-sentence-metadata: Private ordinary functions
Function, convert-sentence-to-rdf: Private ordinary functions
Function, convert-sentence-to-turtle: Private ordinary functions
Function, convert-to-rdf: Public ordinary functions
Function, convert-token-to-rdf: Private ordinary functions
Function, create-cell: Private ordinary functions
Function, def-match: Private ordinary functions
Function, definitions: Private ordinary functions
Function, defs-tests: Private ordinary functions
Function, diff: Public ordinary functions
Function, draw-conllu: Private ordinary functions
Function, emit-prolog: Private ordinary functions
Function, equal-op: Private ordinary functions
Function, escape-string: Private ordinary functions
Function, escape-turtle-char: Private ordinary functions
Function, eval-query: Private ordinary functions
Function, exact-match: Public ordinary functions
Function, exact-match-score: Public ordinary functions
Function, exact-match-sentence: Private ordinary functions
Function, examine-acts: Private ordinary functions
Function, existing-cell-p: Private ordinary functions
Function, find-min: Private ordinary functions
Function, get-data: Private ordinary functions
Function, get-field-value: Private ordinary functions
Function, get-kids: Private ordinary functions
Function, get-projection: Private ordinary functions
Function, get-stroke-size: Private ordinary functions
Function, hash-to-features: Private ordinary functions
Function, insert-at: Private ordinary functions
Function, insert-entry-confusion-matrix: Private ordinary functions
Function, intern-pattern: Private ordinary functions
Function, intern-rule: Private ordinary functions
Function, intern-sides: Private ordinary functions
Function, is-descendant?: Private ordinary functions
Function, is-root: Private ordinary functions
Function, is-sentence-projective: Private ordinary functions
Function, is-token-projective: Private ordinary functions
Function, join-matchs: Private ordinary functions
Function, lazy-stream-reader: Public ordinary functions
Function, levenshtein: Public ordinary functions
Function, line->token: Private ordinary functions
Function, make-confusion-matrix: Public ordinary functions
Function, make-dep: Private ordinary functions
Function, make-featurename: Private ordinary functions
Function, make-features: Private ordinary functions
Function, make-features-bnode: Private ordinary functions
Function, make-id: Private ordinary functions
Function, make-literal: Private ordinary functions
Function, make-metadata: Private ordinary functions
Function, make-metadata-bnode: Private ordinary functions
Function, make-sentence: Public ordinary functions
Function, make-token-id: Private ordinary functions
Function, make-tree: Private ordinary functions
Function, make-twigs: Private ordinary functions
Function, make-upos: Private ordinary functions
Function, mappend: Private ordinary functions
Function, match-test: Private ordinary functions
Function, match-token: Private ordinary functions
Function, match?: Private ordinary functions
Function, member-op: Private ordinary functions
Function, merge-matchs: Private ordinary functions
Function, merge-sets: Private ordinary functions
Function, modify-conllu: Private ordinary functions
Function, modify-value: Private ordinary functions
Function, mtoken-equal: Private ordinary functions
Function, multiple-merges: Private ordinary functions
Function, node-matchs: Private ordinary functions
Function, non-projective-punct: Private ordinary functions
Function, non-projectivity-accuracy: Public ordinary functions
Function, non-projectivity-precision: Public ordinary functions
Function, non-projectivity-recall: Public ordinary functions
Function, normalize-shortcut: Private ordinary functions
Function, or%: Private ordinary functions
Function, parse-field: Private ordinary functions
Function, precision: Public ordinary functions
Function, print-diff: Private ordinary functions
Function, process-features: Private ordinary functions
Function, process-tokens: Private ordinary functions
Function, prolog-string: Private ordinary functions
Function, query: Public ordinary functions
Function, query-as-json: Public ordinary functions
Function, range: Private ordinary functions
Function, read-conllu: Public ordinary functions
Function, read-directory: Public ordinary functions
Function, read-file: Public ordinary functions
Function, read-file-tag-suffix: Public ordinary functions
Function, read-rules: Private ordinary functions
Function, read-sentence-tag-suffix: Public ordinary functions
Function, read-stream: Public ordinary functions
Function, recall: Public ordinary functions
Function, regex-op: Private ordinary functions
Function, rel-match: Private ordinary functions
Function, relation: Private ordinary functions
Function, relation-test: Private ordinary functions
Function, relations: Private ordinary functions
Function, result-act: Private ordinary functions
Function, result-acts: Private ordinary functions
Function, result-set: Private ordinary functions
Function, result-sets: Private ordinary functions
Function, rhs: Private ordinary functions
Function, rhs-vars: Private ordinary functions
Function, rls: Private ordinary functions
Function, rls-vars: Private ordinary functions
Function, r~: Private ordinary functions
Function, select-sentence: Private ordinary functions
Function, sentence->text: Public ordinary functions
Function, sentence-average-score: Private ordinary functions
Function, sentence-binary-tree: Public ordinary functions
Function, sentence-by-id: Private ordinary functions
Function, sentence-diff: Private ordinary functions
Function, sentence-equal: Public ordinary functions
Function, sentence-fill-offsets: Public ordinary functions
Function, sentence-get-token-by-id: Private ordinary functions
Function, sentence-hash-table: Public ordinary functions
Function, sentence-id: Public ordinary functions
Function, sentence-matrix: Private ordinary functions
Function, sentence-meta-value: Public ordinary functions
Function, sentence-root: Public ordinary functions
Function, sentence-size: Public ordinary functions
Function, sentence-text: Public ordinary functions
Function, sentence-valid?: Public ordinary functions
Function, set-head: Private ordinary functions
Function, sets: Private ordinary functions
Function, simple-deprel: Public ordinary functions
Function, test-feats&misc: Private ordinary functions
Function, token-add-feature: Public ordinary functions
Function, token-attached: Private ordinary functions
Function, token-children: Public ordinary functions
Function, token-diff: Private ordinary functions
Function, token-equal: Private ordinary functions
Function, token-hash-features: Public ordinary functions
Function, token-matchs: Private ordinary functions
Function, token-misc-value: Private ordinary functions
Function, token-parent: Public ordinary functions
Function, token-rem-feature: Public ordinary functions
Function, toprologid: Private ordinary functions
Function, tree-sentence: Public ordinary functions
Function, tree-sentence-by-id: Public ordinary functions
Function, t~: Private ordinary functions
Function, unspecified-field?: Private ordinary functions
Function, update-lines: Private ordinary functions
Function, valid-line: Private ordinary functions
Function, valid-vars: Private ordinary functions
Function, variable-p: Private ordinary functions
Function, word-average-score: Private ordinary functions
Function, write-columns-headers: Private ordinary functions
Function, write-conllu: Public ordinary functions
Function, write-conllu-to-stream: Public ordinary functions
Function, write-prolog: Private ordinary functions
Function, write-rows: Private ordinary functions
Function, write-selected-sentence: Private ordinary functions
Function, write-sentence: Private ordinary functions
Function, write-sentence-tag-suffix-to-stream: Public ordinary functions
Function, write-sentences-tag-suffix: Public ordinary functions
Function, write-sentences-tag-suffix-to-stream: Public ordinary functions
Function, write-token-tag-suffix: Private ordinary functions

G
Generic Function, (setf confusion-matrix-corpus-id): Public generic functions
Generic Function, (setf confusion-matrix-key-fn): Private generic functions
Generic Function, (setf confusion-matrix-rows): Private generic functions
Generic Function, (setf confusion-matrix-sort-fn): Private generic functions
Generic Function, (setf confusion-matrix-test-fn): Private generic functions
Generic Function, (setf etoken-deps): Private generic functions
Generic Function, (setf etoken-feats): Private generic functions
Generic Function, (setf etoken-index): Private generic functions
Generic Function, (setf etoken-lemma): Private generic functions
Generic Function, (setf etoken-prev): Private generic functions
Generic Function, (setf etoken-upostag): Private generic functions
Generic Function, (setf etoken-xpostag): Private generic functions
Generic Function, (setf mtoken-end): Public generic functions
Generic Function, (setf mtoken-start): Public generic functions
Generic Function, (setf sentence-etokens): Private generic functions
Generic Function, (setf sentence-meta): Public generic functions
Generic Function, (setf sentence-mtokens): Public generic functions
Generic Function, (setf sentence-start): Public generic functions
Generic Function, (setf sentence-tokens): Public generic functions
Generic Function, (setf token-cfrom): Public generic functions
Generic Function, (setf token-cto): Public generic functions
Generic Function, (setf token-deprel): Public generic functions
Generic Function, (setf token-deps): Public generic functions
Generic Function, (setf token-feats): Public generic functions
Generic Function, (setf token-form): Public generic functions
Generic Function, (setf token-head): Public generic functions
Generic Function, (setf token-id): Public generic functions
Generic Function, (setf token-lemma): Public generic functions
Generic Function, (setf token-lineno): Private generic functions
Generic Function, (setf token-misc): Public generic functions
Generic Function, (setf token-sentence): Public generic functions
Generic Function, (setf token-upostag): Public generic functions
Generic Function, (setf token-xpostag): Public generic functions
Generic Function, confusion-matrix-corpus-id: Public generic functions
Generic Function, confusion-matrix-key-fn: Private generic functions
Generic Function, confusion-matrix-rows: Private generic functions
Generic Function, confusion-matrix-sort-fn: Private generic functions
Generic Function, confusion-matrix-test-fn: Private generic functions
Generic Function, etoken-deps: Private generic functions
Generic Function, etoken-feats: Private generic functions
Generic Function, etoken-index: Private generic functions
Generic Function, etoken-lemma: Private generic functions
Generic Function, etoken-prev: Private generic functions
Generic Function, etoken-upostag: Private generic functions
Generic Function, etoken-xpostag: Private generic functions
Generic Function, format-html: Public generic functions
Generic Function, index: Private generic functions
Generic Function, mtoken-end: Public generic functions
Generic Function, mtoken-start: Public generic functions
Generic Function, sentence-etokens: Private generic functions
Generic Function, sentence-meta: Public generic functions
Generic Function, sentence-mtokens: Public generic functions
Generic Function, sentence-start: Public generic functions
Generic Function, sentence-tokens: Public generic functions
Generic Function, token-cfrom: Public generic functions
Generic Function, token-cto: Public generic functions
Generic Function, token-deprel: Public generic functions
Generic Function, token-deps: Public generic functions
Generic Function, token-feats: Public generic functions
Generic Function, token-form: Public generic functions
Generic Function, token-head: Public generic functions
Generic Function, token-id: Public generic functions
Generic Function, token-lemma: Public generic functions
Generic Function, token-lineno: Private generic functions
Generic Function, token-misc: Public generic functions
Generic Function, token-sentence: Public generic functions
Generic Function, token-upostag: Public generic functions
Generic Function, token-xpostag: Public generic functions
Generic Function, write-token: Private generic functions
get-data: Private ordinary functions
get-field-value: Private ordinary functions
get-kids: Private ordinary functions
get-projection: Private ordinary functions
get-stroke-size: Private ordinary functions

H
hash-to-features: Private ordinary functions

I
index: Private generic functions
index: Private generic functions
initialize-instance: Public standalone methods
initialize-instance: Public standalone methods
insert-at: Private ordinary functions
insert-entry-confusion-matrix: Private ordinary functions
intern-pattern: Private ordinary functions
intern-rule: Private ordinary functions
intern-sides: Private ordinary functions
is-descendant?: Private ordinary functions
is-root: Private ordinary functions
is-sentence-projective: Private ordinary functions
is-token-projective: Private ordinary functions

J
join-matchs: Private ordinary functions

L
lazy-stream-reader: Public ordinary functions
levenshtein: Public ordinary functions
line->token: Private ordinary functions

M
Macro, error-test: Private macros
make-confusion-matrix: Public ordinary functions
make-dep: Private ordinary functions
make-featurename: Private ordinary functions
make-features: Private ordinary functions
make-features-bnode: Private ordinary functions
make-id: Private ordinary functions
make-literal: Private ordinary functions
make-metadata: Private ordinary functions
make-metadata-bnode: Private ordinary functions
make-sentence: Public ordinary functions
make-token-id: Private ordinary functions
make-tree: Private ordinary functions
make-twigs: Private ordinary functions
make-upos: Private ordinary functions
mappend: Private ordinary functions
match-test: Private ordinary functions
match-token: Private ordinary functions
match?: Private ordinary functions
member-op: Private ordinary functions
merge-matchs: Private ordinary functions
merge-sets: Private ordinary functions
Method, (setf confusion-matrix-corpus-id): Public generic functions
Method, (setf confusion-matrix-key-fn): Private generic functions
Method, (setf confusion-matrix-rows): Private generic functions
Method, (setf confusion-matrix-sort-fn): Private generic functions
Method, (setf confusion-matrix-test-fn): Private generic functions
Method, (setf etoken-deps): Private generic functions
Method, (setf etoken-feats): Private generic functions
Method, (setf etoken-index): Private generic functions
Method, (setf etoken-lemma): Private generic functions
Method, (setf etoken-prev): Private generic functions
Method, (setf etoken-upostag): Private generic functions
Method, (setf etoken-xpostag): Private generic functions
Method, (setf mtoken-end): Public generic functions
Method, (setf mtoken-start): Public generic functions
Method, (setf sentence-etokens): Private generic functions
Method, (setf sentence-meta): Public generic functions
Method, (setf sentence-mtokens): Public generic functions
Method, (setf sentence-start): Public generic functions
Method, (setf sentence-tokens): Public generic functions
Method, (setf token-cfrom): Public generic functions
Method, (setf token-cto): Public generic functions
Method, (setf token-deprel): Public generic functions
Method, (setf token-deps): Public generic functions
Method, (setf token-feats): Public generic functions
Method, (setf token-form): Public generic functions
Method, (setf token-head): Public generic functions
Method, (setf token-id): Public generic functions
Method, (setf token-lemma): Public generic functions
Method, (setf token-lineno): Private generic functions
Method, (setf token-misc): Public generic functions
Method, (setf token-sentence): Public generic functions
Method, (setf token-upostag): Public generic functions
Method, (setf token-xpostag): Public generic functions
Method, confusion-matrix-corpus-id: Public generic functions
Method, confusion-matrix-key-fn: Private generic functions
Method, confusion-matrix-rows: Private generic functions
Method, confusion-matrix-sort-fn: Private generic functions
Method, confusion-matrix-test-fn: Private generic functions
Method, encode: Public standalone methods
Method, encode: Public standalone methods
Method, etoken-deps: Private generic functions
Method, etoken-feats: Private generic functions
Method, etoken-index: Private generic functions
Method, etoken-lemma: Private generic functions
Method, etoken-prev: Private generic functions
Method, etoken-upostag: Private generic functions
Method, etoken-xpostag: Private generic functions
Method, format-html: Public generic functions
Method, index: Private generic functions
Method, initialize-instance: Public standalone methods
Method, initialize-instance: Public standalone methods
Method, mtoken-end: Public generic functions
Method, mtoken-start: Public generic functions
Method, print-object: Public standalone methods
Method, print-object: Public standalone methods
Method, print-object: Public standalone methods
Method, sentence-etokens: Private generic functions
Method, sentence-meta: Public generic functions
Method, sentence-mtokens: Public generic functions
Method, sentence-start: Public generic functions
Method, sentence-tokens: Public generic functions
Method, token-cfrom: Public generic functions
Method, token-cto: Public generic functions
Method, token-deprel: Public generic functions
Method, token-deps: Public generic functions
Method, token-feats: Public generic functions
Method, token-form: Public generic functions
Method, token-head: Public generic functions
Method, token-id: Public generic functions
Method, token-lemma: Public generic functions
Method, token-lineno: Private generic functions
Method, token-misc: Public generic functions
Method, token-sentence: Public generic functions
Method, token-upostag: Public generic functions
Method, token-xpostag: Public generic functions
Method, write-token: Private generic functions
Method, write-token: Private generic functions
Method, write-token: Private generic functions
modify-conllu: Private ordinary functions
modify-value: Private ordinary functions
mtoken-end: Public generic functions
mtoken-end: Public generic functions
mtoken-equal: Private ordinary functions
mtoken-start: Public generic functions
mtoken-start: Public generic functions
multiple-merges: Private ordinary functions

N
node-matchs: Private ordinary functions
non-projective-punct: Private ordinary functions
non-projectivity-accuracy: Public ordinary functions
non-projectivity-precision: Public ordinary functions
non-projectivity-recall: Public ordinary functions
normalize-shortcut: Private ordinary functions

O
or%: Private ordinary functions

P
parse-field: Private ordinary functions
precision: Public ordinary functions
print-diff: Private ordinary functions
print-object: Public standalone methods
print-object: Public standalone methods
print-object: Public standalone methods
process-features: Private ordinary functions
process-tokens: Private ordinary functions
prolog-string: Private ordinary functions

Q
query: Public ordinary functions
query-as-json: Public ordinary functions

R
range: Private ordinary functions
read-conllu: Public ordinary functions
read-directory: Public ordinary functions
read-file: Public ordinary functions
read-file-tag-suffix: Public ordinary functions
read-rules: Private ordinary functions
read-sentence-tag-suffix: Public ordinary functions
read-stream: Public ordinary functions
recall: Public ordinary functions
regex-op: Private ordinary functions
rel-match: Private ordinary functions
relation: Private ordinary functions
relation-test: Private ordinary functions
relations: Private ordinary functions
result-act: Private ordinary functions
result-acts: Private ordinary functions
result-set: Private ordinary functions
result-sets: Private ordinary functions
rhs: Private ordinary functions
rhs-vars: Private ordinary functions
rls: Private ordinary functions
rls-vars: Private ordinary functions
r~: Private ordinary functions

S
select-sentence: Private ordinary functions
sentence->text: Public ordinary functions
sentence-average-score: Private ordinary functions
sentence-binary-tree: Public ordinary functions
sentence-by-id: Private ordinary functions
sentence-diff: Private ordinary functions
sentence-equal: Public ordinary functions
sentence-etokens: Private generic functions
sentence-etokens: Private generic functions
sentence-fill-offsets: Public ordinary functions
sentence-get-token-by-id: Private ordinary functions
sentence-hash-table: Public ordinary functions
sentence-id: Public ordinary functions
sentence-matrix: Private ordinary functions
sentence-meta: Public generic functions
sentence-meta: Public generic functions
sentence-meta-value: Public ordinary functions
sentence-mtokens: Public generic functions
sentence-mtokens: Public generic functions
sentence-root: Public ordinary functions
sentence-size: Public ordinary functions
sentence-start: Public generic functions
sentence-start: Public generic functions
sentence-text: Public ordinary functions
sentence-tokens: Public generic functions
sentence-tokens: Public generic functions
sentence-valid?: Public ordinary functions
set-head: Private ordinary functions
sets: Private ordinary functions
simple-deprel: Public ordinary functions

T
test-feats&misc: Private ordinary functions
token-add-feature: Public ordinary functions
token-attached: Private ordinary functions
token-cfrom: Public generic functions
token-cfrom: Public generic functions
token-children: Public ordinary functions
token-cto: Public generic functions
token-cto: Public generic functions
token-deprel: Public generic functions
token-deprel: Public generic functions
token-deps: Public generic functions
token-deps: Public generic functions
token-diff: Private ordinary functions
token-equal: Private ordinary functions
token-feats: Public generic functions
token-feats: Public generic functions
token-form: Public generic functions
token-form: Public generic functions
token-hash-features: Public ordinary functions
token-head: Public generic functions
token-head: Public generic functions
token-id: Public generic functions
token-id: Public generic functions
token-lemma: Public generic functions
token-lemma: Public generic functions
token-lineno: Private generic functions
token-lineno: Private generic functions
token-matchs: Private ordinary functions
token-misc: Public generic functions
token-misc: Public generic functions
token-misc-value: Private ordinary functions
token-parent: Public ordinary functions
token-rem-feature: Public ordinary functions
token-sentence: Public generic functions
token-sentence: Public generic functions
token-upostag: Public generic functions
token-upostag: Public generic functions
token-xpostag: Public generic functions
token-xpostag: Public generic functions
toprologid: Private ordinary functions
tree-sentence: Public ordinary functions
tree-sentence-by-id: Public ordinary functions
t~: Private ordinary functions

U
unspecified-field?: Private ordinary functions
update-lines: Private ordinary functions

V
valid-line: Private ordinary functions
valid-vars: Private ordinary functions
variable-p: Private ordinary functions

W
word-average-score: Private ordinary functions
write-columns-headers: Private ordinary functions
write-conllu: Public ordinary functions
write-conllu-to-stream: Public ordinary functions
write-prolog: Private ordinary functions
write-rows: Private ordinary functions
write-selected-sentence: Private ordinary functions
write-sentence: Private ordinary functions
write-sentence-tag-suffix-to-stream: Public ordinary functions
write-sentences-tag-suffix: Public ordinary functions
write-sentences-tag-suffix-to-stream: Public ordinary functions
write-token: Private generic functions
write-token: Private generic functions
write-token: Private generic functions
write-token: Private generic functions
write-token-tag-suffix: Private ordinary functions


A.3 Variables

Jump to:   *  
C   D   E   F   H   I   K   L   M   P   R   S   T   U   V   X  
Index Entry  Section

*
*clauses*: Private special variables
*confusion-matrix-style*: Public special variables
*dependencies*: Private special variables
*deprel-value-list*: Private special variables
*deprels*: Private special variables
*token-fields*: Private special variables
*token-fields*: Private special variables

C
cfrom: Private classes
corpus-id: Public classes
cto: Private classes

D
deprel: Public classes
deps: Public classes
deps: Private classes

E
end: Public classes
etokens: Public classes

F
feats: Public classes
feats: Private classes
field: Private conditions
form: Private classes

H
head: Public classes

I
id: Public classes
index: Private conditions
index: Private classes

K
key-fn: Public classes

L
lemma: Public classes
lemma: Private classes
line: Private conditions
line: Private conditions
lineno: Private classes

M
message: Private conditions
meta: Public classes
misc: Private classes
mtokens: Public classes

P
prev: Private classes

R
rows: Public classes

S
sentence: Private classes
Slot, cfrom: Private classes
Slot, corpus-id: Public classes
Slot, cto: Private classes
Slot, deprel: Public classes
Slot, deps: Public classes
Slot, deps: Private classes
Slot, end: Public classes
Slot, etokens: Public classes
Slot, feats: Public classes
Slot, feats: Private classes
Slot, field: Private conditions
Slot, form: Private classes
Slot, head: Public classes
Slot, id: Public classes
Slot, index: Private conditions
Slot, index: Private classes
Slot, key-fn: Public classes
Slot, lemma: Public classes
Slot, lemma: Private classes
Slot, line: Private conditions
Slot, line: Private conditions
Slot, lineno: Private classes
Slot, message: Private conditions
Slot, meta: Public classes
Slot, misc: Private classes
Slot, mtokens: Public classes
Slot, prev: Private classes
Slot, rows: Public classes
Slot, sentence: Private classes
Slot, sort-fn: Public classes
Slot, start: Public classes
Slot, start: Public classes
Slot, test-fn: Public classes
Slot, tokens: Public classes
Slot, upostag: Public classes
Slot, upostag: Private classes
Slot, value: Private conditions
Slot, xpostag: Public classes
Slot, xpostag: Private classes
sort-fn: Public classes
Special Variable, *clauses*: Private special variables
Special Variable, *confusion-matrix-style*: Public special variables
Special Variable, *dependencies*: Private special variables
Special Variable, *deprel-value-list*: Private special variables
Special Variable, *deprels*: Private special variables
Special Variable, *token-fields*: Private special variables
Special Variable, *token-fields*: Private special variables
start: Public classes
start: Public classes

T
test-fn: Public classes
tokens: Public classes

U
upostag: Public classes
upostag: Private classes

V
value: Private conditions

X
xpostag: Public classes
xpostag: Private classes


A.4 Data types

Jump to:   A   C   D   E   F   H   M   P   Q   R   S   T   U  
Index Entry  Section

A
abstract-token: Private classes

C
cl-conllu: The cl-conllu system
cl-conllu: The cl-conllu package
cl-conllu.asd: The cl-conllu/cl-conllu․asd file
Class, abstract-token: Private classes
Class, confusion-matrix: Public classes
Class, etoken: Private classes
Class, mtoken: Public classes
Class, sentence: Public classes
Class, token: Public classes
command-line.lisp: The cl-conllu/command-line․lisp file
Condition, malformed-field: Private conditions
Condition, malformed-line: Private conditions
Condition, malformed-rule: Private conditions
confusion-matrix: Public classes
confusion-matrix.lisp: The cl-conllu/confusion-matrix․lisp file
conllu-prolog.lisp: The cl-conllu/conllu-prolog․lisp file
conllu.converters.niceline: The conllu․converters․niceline package
conllu.converters.tags: The conllu․converters․tags package
conllu.draw: The conllu․draw package
conllu.editor: The conllu․editor package
conllu.evaluate: The conllu․evaluate package
conllu.html: The conllu․html package
conllu.prolog: The conllu․prolog package
conllu.rdf: The conllu․rdf package
conllu.rules: The conllu․rules package
conllu.user: The conllu․user package

D
data.lisp: The cl-conllu/data․lisp file
draw.lisp: The cl-conllu/draw․lisp file

E
editor.lisp: The cl-conllu/editor․lisp file
etoken: Private classes
evaluate.lisp: The cl-conllu/evaluate․lisp file

F
File, cl-conllu.asd: The cl-conllu/cl-conllu․asd file
File, command-line.lisp: The cl-conllu/command-line․lisp file
File, confusion-matrix.lisp: The cl-conllu/confusion-matrix․lisp file
File, conllu-prolog.lisp: The cl-conllu/conllu-prolog․lisp file
File, data.lisp: The cl-conllu/data․lisp file
File, draw.lisp: The cl-conllu/draw․lisp file
File, editor.lisp: The cl-conllu/editor․lisp file
File, evaluate.lisp: The cl-conllu/evaluate․lisp file
File, html.lisp: The cl-conllu/html․lisp file
File, packages.lisp: The cl-conllu/packages․lisp file
File, projective.lisp: The cl-conllu/projective․lisp file
File, query.lisp: The cl-conllu/query․lisp file
File, rdf-wilbur.lisp: The cl-conllu/rdf-wilbur․lisp file
File, rdf.lisp: The cl-conllu/rdf․lisp file
File, read-write.lisp: The cl-conllu/read-write․lisp file
File, rules.lisp: The cl-conllu/rules․lisp file
File, tag-converter.lisp: The cl-conllu/tag-converter․lisp file
File, utils.lisp: The cl-conllu/utils․lisp file

H
html.lisp: The cl-conllu/html․lisp file

M
malformed-field: Private conditions
malformed-line: Private conditions
malformed-rule: Private conditions
mtoken: Public classes

P
Package, cl-conllu: The cl-conllu package
Package, conllu.converters.niceline: The conllu․converters․niceline package
Package, conllu.converters.tags: The conllu․converters․tags package
Package, conllu.draw: The conllu․draw package
Package, conllu.editor: The conllu․editor package
Package, conllu.evaluate: The conllu․evaluate package
Package, conllu.html: The conllu․html package
Package, conllu.prolog: The conllu․prolog package
Package, conllu.rdf: The conllu․rdf package
Package, conllu.rules: The conllu․rules package
Package, conllu.user: The conllu․user package
packages.lisp: The cl-conllu/packages․lisp file
projective.lisp: The cl-conllu/projective․lisp file

Q
query.lisp: The cl-conllu/query․lisp file

R
rdf-wilbur.lisp: The cl-conllu/rdf-wilbur․lisp file
rdf.lisp: The cl-conllu/rdf․lisp file
read-write.lisp: The cl-conllu/read-write․lisp file
rules.lisp: The cl-conllu/rules․lisp file

S
sentence: Public classes
System, cl-conllu: The cl-conllu system

T
tag-converter.lisp: The cl-conllu/tag-converter․lisp file
token: Public classes

U
utils.lisp: The cl-conllu/utils․lisp file