dialogy.plugins.text.address_parser package

Submodules

dialogy.plugins.text.address_parser.mapmyindia module

class MapMyIndia(client_id, client_secret)[source]

Bases: object

geocode(address, region='ind', pin=None)[source]
Return type

Optional[Dict[str, str]]

dialogy.plugins.text.address_parser.maps module

get_all_numbers_from_a_string(string)[source]
Return type

List[str]

get_gmaps_address(client)[source]
Return type

Callable[[str, str, str, str], str]

get_house_number(most_confident_transcription)[source]
Return type

str

get_mapmyindia_address(client)[source]
Return type

Callable[[str, str, str], str]

is_house_number_absent_from_response(house_number, matching_address)[source]
Return type

Any

Module contents

class AddressParserPlugin(dest=None, access=None, provider='mmi', gmaps_api_token=None, mmi_client_id=None, mmi_client_secret=None, address_capturing_intents=None, pincode_capturing_intents=None, pincode_slot_name=None, country_code=None, language=None, debug=False, **kwargs)[source]

Bases: dialogy.base.plugin.Plugin

utility(input_, output)[source]

An abstract method that describes the plugin’s functionality.

Parameters
  • input (Input) – The workflow’s input.

  • output (Output) – The workflow’s output.

Returns

The value returned by the plugin.

Return type

Any

exception MissingCredentials[source]

Bases: Exception