de6d474bd667cc040856792cce62148691fbabda,pliers/extractors/api.py,ClarifaiAPIExtractor,_extract,#ClarifaiAPIExtractor#Any#,163

Before Change


            with open(filename, "rb") as f:
                tags = self.tagger.tag_images(f, select_classes=self.select_classes)

        tagged = tags["results"][0]["result"]["tag"]
        return ExtractorResult([tagged["probs"]], stim, self,
                               features=tagged["classes"])

After Change


            self.select_classes = ",".join(select_classes)

    def _extract(self, stim):
        stims = listify(stim)

        with ExitStack() as stack:
            files = [stack.enter_context(s.get_filename()) for s in stims]
            fps = [stack.enter_context(open(f, "rb")) for f in files]
            tags = self.tagger.tag_images(fps, select_classes=self.select_classes)

        extracted = []
        for i, res in enumerate(tags["results"]):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: tyarkoni/pliers
Commit Name: de6d474bd667cc040856792cce62148691fbabda
Time: 2017-05-08
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/api.py
Class Name: ClarifaiAPIExtractor
Method Name: _extract


Project Name: J535D165/recordlinkage
Commit Name: dc127833815e8f750f147ddea090b766025cce0d
Time: 2018-02-13
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/base.py
Class Name: BaseCompareFeature
Method Name: compute


Project Name: J535D165/recordlinkage
Commit Name: 74a39180006c16cd748ee8266169e37677f6a33d
Time: 2018-02-28
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/base.py
Class Name: BaseCompareFeature
Method Name: compute