openlostcat/categorycatalog.py
def apply_fm_evaluation(self, tag_bundle_set):
        """Categorizes a location (by its tag bundle set) with the first-matching category strategy (single output)

        :param tag_bundle_set: set of dicts of tags of osm objects at the location to be categorized
        :return: list of matching categories
        """
        for num, category in enumerate(self.categories):
            (is_matching_category, op_result_meta_info) = category.apply(tag_bundle_set)
            if is_matching_category:
                return (num, category.name, op_result_meta_info) if self.debug else (num, category.name)
        return (-1, None, []) if self.debug else (-1, None)
Categorizes a location (by its tag bundle set) with the first-matching category strategy (single output)

        :param tag_bundle_set: set of dicts of tags of osm objects at the location to be categorized
        :return: list of matching categories
        
Categorizes a location (by its tag bundle set) with the first-matching category strategy (single output)
Categorizes a location ( by its tag bundle set ) with the first - matching category strategy ( single output )
def apply_fm_evaluation(self, tag_bundle_set):
        for num, category in enumerate(self.categories):
            (is_matching_category, op_result_meta_info) = category.apply(tag_bundle_set)
            if is_matching_category:
                return (num, category.name, op_result_meta_info) if self.debug else (num, category.name)
        return (-1, None, []) if self.debug else (-1, None)
def apply_fm_evaluation ( self , tag_bundle_set ) : for num , category in enumerate ( self . categories ) : ( is_matching_category , op_result_meta_info ) = category . apply ( tag_bundle_set ) if is_matching_category : return ( num , category . name , op_result_meta_info ) if self . debug else ( num , category . name ) return ( - 1 , None , [ ] ) if self . debug else ( - 1 , None )
Categorizes a location (by its tag bundle set) with the first-matching category strategy (single output)
Categorizes a location ( by its tag bundle set ) with the first - matching category strategy ( single output )
"""Categorizes a location (by its tag bundle set) with the first-matching category strategy (single output)

        :param tag_bundle_set: set of dicts of tags of osm objects at the location to be categorized
        :return: list of matching categories
        """
list of matching categories
list of matching categories
self
tag_bundle_set
set of dicts of tags of osm objects at the location to be categorized
set of dicts of tags of osm objects at the location to be categorized