alex.components.nlg.tectotpl.block.t2a package¶
Subpackages¶
- alex.components.nlg.tectotpl.block.t2a.cs package
- Submodules
- alex.components.nlg.tectotpl.block.t2a.cs.addappositionpunct module
- alex.components.nlg.tectotpl.block.t2a.cs.addauxverbcompoundfuture module
- alex.components.nlg.tectotpl.block.t2a.cs.addauxverbcompoundpassive module
- alex.components.nlg.tectotpl.block.t2a.cs.addauxverbcompoundpast module
- alex.components.nlg.tectotpl.block.t2a.cs.addauxverbconditional module
- alex.components.nlg.tectotpl.block.t2a.cs.addauxverbmodal module
- alex.components.nlg.tectotpl.block.t2a.cs.addclausalexpletives module
- alex.components.nlg.tectotpl.block.t2a.cs.addclausalpunct module
- alex.components.nlg.tectotpl.block.t2a.cs.addcoordpunct module
- alex.components.nlg.tectotpl.block.t2a.cs.addparentheses module
- alex.components.nlg.tectotpl.block.t2a.cs.addprepositions module
- alex.components.nlg.tectotpl.block.t2a.cs.addreflexiveparticles module
- alex.components.nlg.tectotpl.block.t2a.cs.addsentfinalpunct module
- alex.components.nlg.tectotpl.block.t2a.cs.addsubconjs module
- alex.components.nlg.tectotpl.block.t2a.cs.addsubordclausepunct module
- alex.components.nlg.tectotpl.block.t2a.cs.capitalizesentstart module
- alex.components.nlg.tectotpl.block.t2a.cs.deletesuperfluousauxs module
- alex.components.nlg.tectotpl.block.t2a.cs.dropsubjpersprons module
- alex.components.nlg.tectotpl.block.t2a.cs.generatepossessiveadjectives module
- alex.components.nlg.tectotpl.block.t2a.cs.generatewordforms module
- alex.components.nlg.tectotpl.block.t2a.cs.imposeattragr module
- alex.components.nlg.tectotpl.block.t2a.cs.imposecomplagr module
- alex.components.nlg.tectotpl.block.t2a.cs.imposepronzagr module
- alex.components.nlg.tectotpl.block.t2a.cs.imposerelpronagr module
- alex.components.nlg.tectotpl.block.t2a.cs.imposesubjpredagr module
- alex.components.nlg.tectotpl.block.t2a.cs.initmorphcat module
- alex.components.nlg.tectotpl.block.t2a.cs.marksubject module
- alex.components.nlg.tectotpl.block.t2a.cs.markverbalcategories module
- alex.components.nlg.tectotpl.block.t2a.cs.movecliticstowackernagel module
- alex.components.nlg.tectotpl.block.t2a.cs.projectclausenumber module
- alex.components.nlg.tectotpl.block.t2a.cs.reversenumbernoundependency module
- alex.components.nlg.tectotpl.block.t2a.cs.vocalizeprepos module
- Module contents
Submodules¶
alex.components.nlg.tectotpl.block.t2a.addauxwords module¶
-
class
alex.components.nlg.tectotpl.block.t2a.addauxwords.
AddAuxWords
(scenario, args)[source]¶ Bases:
alex.components.nlg.tectotpl.core.block.Block
Add auxiliary a-nodes according to formemes.
This is a base class for all steps adding auxiliary nodes.
- Arguments:
- language: the language of the target tree selector: the selector of the target tree
-
get_anode
(tnode)[source]¶ Return the a-node corresponding to the given t-node. Defaults to lexical a-node.
-
get_aux_forms
(tnode)[source]¶ This should return a list of new forms for the auxiliaries, or None if none should be added
-
new_aux_node
(aparent, form)[source]¶ Create an auxiliary node with the given surface form and parent.
alex.components.nlg.tectotpl.block.t2a.copyttree module¶
-
class
alex.components.nlg.tectotpl.block.t2a.copyttree.
CopyTTree
(scenario, args)[source]¶ Bases:
alex.components.nlg.tectotpl.core.block.Block
This block creates an a-tree based on a t-tree in the same zone.
- Arguments:
- language: the language of the target zone selector: the selector of the target zone
alex.components.nlg.tectotpl.block.t2a.imposeagreement module¶
-
class
alex.components.nlg.tectotpl.block.t2a.imposeagreement.
ImposeAgreement
(scenario, args)[source]¶ Bases:
alex.components.nlg.tectotpl.core.block.Block
A common ancestor for blocks that impose a grammatical agreement of some kind: they should override the should_agree(tnode), process_excepts(tnode), and impose(tnode) methods.
- Arguments:
- language: the language of the target tree selector: the selector of the target tree