segram.grammar.lang.en.components module

class segram.grammar.lang.en.components.EnglishComponent(*args: Any, **kwds: Any)[source]

Bases: EnglishGrammar, Component

English grammar component.

All grammar classes must be defined as slots classes. This is necessary for ensuring low-memory footprint and better computational efficiency. Even classes with no new slots need to declare __slots__ = (). This requirement is checked during class construction. Other class-specific requirements of this sort as well as their related validation checks may be implemented on specialized grammar classes using the standard __init_subclass__ interface. This allows abstract base classes further down the inheritance chain to check for more complex requirements as well as apply dynamic class customizations.

class segram.grammar.lang.en.components.EnglishVerb(*args: Any, **kwds: Any)[source]

Bases: EnglishComponent, Verb

English verb components.

All grammar classes must be defined as slots classes. This is necessary for ensuring low-memory footprint and better computational efficiency. Even classes with no new slots need to declare __slots__ = (). This requirement is checked during class construction. Other class-specific requirements of this sort as well as their related validation checks may be implemented on specialized grammar classes using the standard __init_subclass__ interface. This allows abstract base classes further down the inheritance chain to check for more complex requirements as well as apply dynamic class customizations. .. attribute:: part

Verb particle.

aux

Auxiliary verbs.

expl

Expletive token in expletive constructions (e.g. ‘there is’).

class segram.grammar.lang.en.components.EnglishNoun(*args: Any, **kwds: Any)[source]

Bases: EnglishComponent, Noun

Abstract base class for English noun components.

All grammar classes must be defined as slots classes. This is necessary for ensuring low-memory footprint and better computational efficiency. Even classes with no new slots need to declare __slots__ = (). This requirement is checked during class construction. Other class-specific requirements of this sort as well as their related validation checks may be implemented on specialized grammar classes using the standard __init_subclass__ interface. This allows abstract base classes further down the inheritance chain to check for more complex requirements as well as apply dynamic class customizations. .. attribute:: det

Determiner token.

class segram.grammar.lang.en.components.EnglishPrep(*args: Any, **kwds: Any)[source]

Bases: EnglishComponent, Prep

English preposition component.

All grammar classes must be defined as slots classes. This is necessary for ensuring low-memory footprint and better computational efficiency. Even classes with no new slots need to declare __slots__ = (). This requirement is checked during class construction. Other class-specific requirements of this sort as well as their related validation checks may be implemented on specialized grammar classes using the standard __init_subclass__ interface. This allows abstract base classes further down the inheritance chain to check for more complex requirements as well as apply dynamic class customizations.

class segram.grammar.lang.en.components.EnglishDesc(*args: Any, **kwds: Any)[source]

Bases: EnglishComponent, Desc

English description component.

All grammar classes must be defined as slots classes. This is necessary for ensuring low-memory footprint and better computational efficiency. Even classes with no new slots need to declare __slots__ = (). This requirement is checked during class construction. Other class-specific requirements of this sort as well as their related validation checks may be implemented on specialized grammar classes using the standard __init_subclass__ interface. This allows abstract base classes further down the inheritance chain to check for more complex requirements as well as apply dynamic class customizations.