acres.resolution package¶
Package with a facade to the several expansion strategies.
Submodules¶
acres.resolution.resolver module¶
Facade to the several expansion strategies.
-
class
acres.resolution.resolver.Strategy(value)[source]¶ Bases:
enum.IntEnumEnum that holds acronym-solving strategies.
-
BASELINE= 5¶
-
DICTIONARY= 3¶
-
FASTNGRAM= 4¶
-
FASTTYPE= 6¶
-
WORD2VEC= 2¶
-
-
acres.resolution.resolver.filtered_resolve(acronym, left_context, right_context, strategy)[source]¶ Resolve a given acronym + context using the provided Strategy and filter out invalid expansions.
- Parameters
acronym (
str) –left_context (
str) –right_context (
str) –strategy (
Strategy) –
- Return type
Iterator[str]- Returns