660f6e5185dbd68267916ff093c81500614d7318,snorkel/features.py,NgramFeaturizer,_match_contexts,#NgramFeaturizer#,73
Before Change
// Add TreeDLib relation features
if candidates[0].xmltree.root is not None:
get_feats = compile_relation_feature_generator()
feature_generators.append(self._generate_context_feats( \
lambda c : get_feats(c.xmltree.root, c1idxs, c2idxs), "TDLIB_", candidates))
return feature_generators
class LegacyCandidateFeaturizer(Featurizer):
After Change
feature_generators.append(self._generate_context_feats( \
lambda c : get_feats(c.xmltree.root, range(c.word_start, c.word_end+1)), "TDL_", candidates))
if self.arity == 2:
raise NotImplementedError("Featurizer needs to be implemented for binary relations!")
return feature_generators
class LegacyCandidateFeaturizer(Featurizer):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: snorkel-team/snorkel
Commit Name: 660f6e5185dbd68267916ff093c81500614d7318
Time: 2016-07-29
Author: ajratner@gmail.com
File Name: snorkel/features.py
Class Name: NgramFeaturizer
Method Name: _match_contexts
Project Name: tensorflow/cleverhans
Commit Name: 6d9bd5a28272145a6216bdffec0d8226168f174d
Time: 2019-04-19
Author: papernot@google.com
File Name: cleverhans/future/torch/attacks/projected_gradient_descent.py
Class Name:
Method Name: projected_gradient_descent
Project Name: xinntao/BasicSR
Commit Name: 6917d8a3dbf6617f02b1247fd50fbc20d3cb6fd4
Time: 2018-06-10
Author: wxt1994@126.com
File Name: codes/data/util.py
Class Name:
Method Name: get_image_paths