alex.components.nlg.tectotpl.block.a2w.cs package

Submodules

alex.components.nlg.tectotpl.block.a2w.cs.concatenatetokens module

class alex.components.nlg.tectotpl.block.a2w.cs.concatenatetokens.ConcatenateTokens(scenario, args)[source]

Bases: alex.components.nlg.tectotpl.core.block.Block

Detokenize the sentence, spread whitespace correctly.

process_zone(zone)[source]

Detokenize the sentence and assign the result to the sentence attribute of the current zone.

alex.components.nlg.tectotpl.block.a2w.cs.removerepeatedtokens module

class alex.components.nlg.tectotpl.block.a2w.cs.removerepeatedtokens.RemoveRepeatedTokens(scenario, args)[source]

Bases: alex.components.nlg.tectotpl.core.block.Block

Remove two identical neighboring tokens.

process_zone(zone)[source]

Remove two identical neighboring tokens in the given sentence.

Module contents