INNER CODE UNIT · Python

load

NorskRegnesentral/skweak · skweak/aggregation.py:247

    def load(cls, pickle_file):
        """Loads the aggregation model from an existing file"""
        print("Loading", pickle_file)
        fd = open(pickle_file, "rb")
        ua = pickle.load(fd)
        fd.close()
        return ua



############################################
# Core aggregation tasks (text classification, sequence labelling, multi-labelling)
############################################   


class TextAggregatorMixin(AbstractAggregator):
    """Implementation of a subset of methods from AbstractAggregator when
    the aggregation is performed for text/span classification.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…