segram.nlp.backend.rulebased.lang.en.grammar.phrases module
- class segram.nlp.backend.rulebased.lang.en.grammar.phrases.RulebasedEnglishPhrase(*args: Any, **kwds: Any)[source]
Bases:
RulebasedEnglishGrammar,EnglishPhrase,PhraseNLPRule-based English
spacyphrase.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.nlp.backend.rulebased.lang.en.grammar.phrases.RulebasedEnglishVerbPhrase(*args: Any, **kwds: Any)[source]
Bases:
RulebasedEnglishPhrase,EnglishVerbPhraseRule-based English
spacyverb phrase.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.nlp.backend.rulebased.lang.en.grammar.phrases.RulebasedEnglishNounPhrase(*args: Any, **kwds: Any)[source]
Bases:
RulebasedEnglishPhrase,EnglishNounPhraseRule-based English
spacynoun phrase.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.nlp.backend.rulebased.lang.en.grammar.phrases.RulebasedEnglishDescPhrase(*args: Any, **kwds: Any)[source]
Bases:
RulebasedEnglishPhrase,EnglishDescPhraseRule-based English
spacydesc phrase.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.nlp.backend.rulebased.lang.en.grammar.phrases.RulebasedEnglishPrepPhrase(*args: Any, **kwds: Any)[source]
Bases:
RulebasedEnglishPhrase,EnglishPrepPhraseRule-based English
spacyprep phrase.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.