pat2vec.util.get_method_index_map
Provides a mapping from pat2vec’s get methods to the default Elasticsearch indices they query. This helps users understand the data sources for each feature extraction function.
Functions
Retrieves a dictionary of all get methods and their default indices. |
|
|
Retrieves the default Elasticsearch index for a given get method. |
- pat2vec.util.get_method_index_map.get_index_for_method(method_name)[source]
Retrieves the default Elasticsearch index for a given get method.
- Parameters:
method_name (
str) – The name of the get method (e.g., ‘get_current_pat_bloods’).- Return type:
Optional[str]- Returns:
The name of the default index as a string, or None if the method is not found in the map.