Class summary | |
---|---|
conditional-unit | |
contributing-unit | |
fcg-construction | inherits from construction |
fcg-construction-set | inherits from construction-inventory |
fcg-light-construction | inherits from fcg-construction |
fcg-light-construction-set | inherits from fcg-construction-set |
fcg-query | |
processing-construction | inherits from construction |
Method summary | |
---|---|
add-cxn | (fcg-construction fcg-construction) (fcg-construction-set fcg-construction-set) &key (replace-when-equivalent t) (equivalent-test (function eql)) (equivalent-key (function name)) &allow-other-keys |
add-cxn | (construction fcg-construction) (construction-inventory fcg-construction-set) &key (replace-when-equivalent t) (equivalent-test (function eql)) (equivalent-key (function name)) |
attributes | fcg-construction |
clear | (construction-set fcg-construction-set) &key &allow-other-keys |
comprehend | utterance &key cxn-inventory silent &allow-other-keys |
comprehend-all | utterance &key cxn-inventory silent n &allow-other-keys |
comprehend-and-formulate | utterance &key cxn-inventory silent &allow-other-keys |
comprehension-lock | conditional-unit |
conditional-part | fcg-construction |
constructions | (fcg-construction-set fcg-construction-set) &key &allow-other-keys |
contributing-part | fcg-construction |
copy-object | (cxn fcg-construction) |
copy-object-content | (source fcg-construction-set) (destination fcg-construction-set) |
cxn-inventory | fcg-query |
delete-cxn | (construction fcg-construction) (construction-set fcg-construction-set) &key (key (function identity)) (test (function eql)) |
direction | fcg-query |
disable-automatic-footprints | fcg-construction |
disable-automatic-footprints | fcg-construction-set |
feature-types | fcg-construction |
feature-types | fcg-construction-set |
find-cxn | (fcg-construction fcg-construction) (fcg-construction-set fcg-construction-set) &key (key (function name)) (test (function eql)) |
find-cxn | (construction t) (fcg-construction-set fcg-construction-set) &key (key (function name)) (test (function eql)) (search-trash nil) |
find-cxn | (construction fcg-construction) (constructions list) &key (key (function name)) (test (function eql)) |
formulate | meaning &key cxn-inventory silent &allow-other-keys |
formulate-all | meaning &key cxn-inventory silent n &allow-other-keys |
formulate-and-comprehend | meaning &key cxn-inventory silent &allow-other-keys |
formulation-lock | conditional-unit |
hierarchy-features | fcg-construction-set |
name | fcg-construction |
name | contributing-unit |
name | conditional-unit |
print-object | (cxn fcg-construction) stream |
print-object | (cxn fcg-light-construction) stream |
processing-cxn-inventory | fcg-construction-set |
sentence | fcg-query |
(setf constructions) | (construction-list list) (construction-set fcg-construction-set) |
unit-structure | contributing-unit |
visualisation | fcg-query |
Function summary | |
---|---|
check-feature-types | fs feature-types cxn-name unit-name part |
find-key-arg | arguments key |
get-original-cxn | processing-cxn |
get-original-cxn-inventory | processing-cxn |
get-processing-cxn | fcg-cxn |
get-processing-cxn-inventory | fcg-cxn |
hash-features-only-p | fcg-cxn |
parse-conditional-fs | fs feature-types cxn-name unit-name |
parse-fcg-fs | fs cxn-name feature-types |
remove-key-args | arguments |
Macro summary | |
---|---|
def-fcg-constructions | name &body keys-and-defs |
def-fcg-cxn | cxn-name fs &key (cxn-inventory (quote *fcg-constructions*)) (cxn-set (quote cxn)) (score 0.5) (feature-types nil) (attributes nil) (disable-automatic-footprints nil) |
def-fcg-light-constructions | &body body |
def-fcg-light-cxn | &body body |
parse-fcg-light-fs | &body body |
:name | [Initarg] |
:contributing-part | [Initarg] |
:conditional-part | [Initarg] |
:feature-types | [Initarg] |
:disable-automatic-footprints | [Initarg] |
:attributes | [Initarg] |
contributing-part | [Slot] |
contains list of contributing units
conditional-part | [Slot] |
contains list of conditional units
Returns and (with setf) changes the attributes of the specified fcg-construction
Returns and (with setf) changes the disable-automatic-footprints of the specified fcg-construction
Returns and (with setf) changes the feature-types of the specified fcg-construction
Returns and (with setf) changes the conditional-part of the specified fcg-construction
Returns and (with setf) changes the contributing-part of the specified fcg-construction
:name | [Initarg] |
:unit-structure | [Initarg] |
unit-structure | [Slot] |
a contributing unit
:name | [Initarg] |
:formulation-lock | [Initarg] |
:comprehension-lock | [Initarg] |
formulation-lock | [Slot] |
contains all features from the formulation-lock
comprehension-lock | [Slot] |
contains all features from the comprehension-lock
Returns and (with setf) changes the comprehension-lock of the specified conditional-unit
Returns and (with setf) changes the formulation-lock of the specified conditional-unit
:constructions | [Initarg] |
:disable-automatic-footprints | [Initarg] |
:feature-types | [Initarg] |
:hierarchy-features | [Initarg] |
:processing-cxn-inventory | [Initarg] |
Returns and (with setf) changes the processing-cxn-inventory of the specified fcg-construction-set
Returns and (with setf) changes the hierarchy-features of the specified fcg-construction-set
Returns and (with setf) changes the feature-types of the specified fcg-construction-set
:sentence | [Initarg] |
:direction | [Initarg] |
:cxn-inventory | [Initarg] |
:visualisation | [Initarg] |
input | [Slot] |
input utterance/meaning representation.
either list of strings or list of meaning predicates
direction | [Slot] |
Direction of the query: -> or <-
visualisation | [Slot] |
slot for determining whether/how you want to visualise the answer
Returns and (with setf) changes the visualisation of the specified fcg-query
Returns and (with setf) changes the cxn-inventory of the specified fcg-query
Returns and (with setf) changes the direction of the specified fcg-query
fcg-light-construction | inherits from fcg-construction | [Class] |
Depreciated class for ensuring backwards compatibility.
fcg-light-construction-set | inherits from fcg-construction-set | [Class] |
Depreciated class for backwards compatibility.
return the constructions of an fcg-light-construction-set
Parses an fcg-light feature structure and returns a list of contributing-units and a list of conditional units (objects). Also throws warnings and errors if needed.
parses an fcg light feature structure for a conditional unit, returns the conditional unit object
returns the original fcg-cxn for any processing-cxn (if it was created using an original fcg-cxn, of course)
returns the processing cxn-inventory for any fcg-light-cxn
returns the original fcg-cxn-inventory for any processing-cxn (if it was created using an original fcg-cxn, of course)
test wheter a cxn contains non-hash-features, i.e. whether the translation will contain non-j units, except for root returns t if fcg-cxn has only hash feature, nil otherwise
Checks the types of features in FCG Light. Throws informative errors when it detects problems.
adds a number of constructions to the default construction set, together with a definition of feature-types and a configuration
def-fcg-cxn | cxn-name fs &key (cxn-inventory (quote *fcg-constructions*)) (cxn-set (quote cxn)) (score 0.5) (feature-types nil) (attributes nil) (disable-automatic-footprints nil) | [Macro] |
Make an instance of an FCG Light cxn and add it to cxn-inventory
Depreciated: Macro that is kept here for backwards compatibility.
Depreciated: macro that is kept for backwards compatibility issues.