1ab3e5385d1aae290c63a698a5618305430e319e,nltk/corpus/reader/propbank.py,PropbankCorpusReader,roleset,#PropbankCorpusReader#Any#,95
Before Change
// n.b.: The encoding for XML fileids is specified by the file
// itself; so we ignore self._encoding here.
etree = ElementTree.parse(self.abspath(framefile).open()).getroot()
for roleset in etree.findall("predicate/roleset"):
if roleset.attrib["id"] == roleset_id:
return roleset
else:
raise ValueError("Roleset %s not found in %s" %
(roleset_id, framefile))
def rolesets(self, baseform=None):
:return: list of xml descriptions for rolesets.
After Change
// n.b.: The encoding for XML fileids is specified by the file
// itself; so we ignore self._encoding here.
etree = ElementTree.parse(self.abspath(framefile).open()).getroot()
for roleset in etree.findall("predicate/roleset"):
if roleset.attrib["id"] == roleset_id:
return roleset
raise ValueError("Roleset %s not found in %s" % (roleset_id, framefile))
def rolesets(self, baseform=None):
:return: list of xml descriptions for rolesets.
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 6
Instances
Project Name: nltk/nltk
Commit Name: 1ab3e5385d1aae290c63a698a5618305430e319e
Time: 2017-07-10
Author: jean.helie@gmail.com
File Name: nltk/corpus/reader/propbank.py
Class Name: PropbankCorpusReader
Method Name: roleset
Project Name: nltk/nltk
Commit Name: 1ab3e5385d1aae290c63a698a5618305430e319e
Time: 2017-07-10
Author: jean.helie@gmail.com
File Name: nltk/corpus/reader/nombank.py
Class Name: NombankCorpusReader
Method Name: roleset
Project Name: bokeh/bokeh
Commit Name: 4b32c307878e01d67e5bc345c4a049539868fc89
Time: 2019-12-24
Author: bryan@bokeh.org
File Name: bokeh/core/property/either.py
Class Name: Either
Method Name: from_json
Project Name: tensorflow/datasets
Commit Name: 11189eb83e4b379c0320fe3880f2235120d540b4
Time: 2020-04-16
Author: eshanagarwal12@gmail.com
File Name: tensorflow_datasets/core/visualization/show_examples.py
Class Name:
Method Name: show_examples
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: c0325f94b92afc95bd77c67f63213a591c742c02
Time: 2019-12-09
Author: seanmorgan91@gmail.com
File Name: setup.py
Class Name:
Method Name: get_version
Project Name: lmcinnes/pynndescent
Commit Name: ab62ab04a36404d5a02dbb408968e76454936e8f
Time: 2020-09-12
Author: leland.mcinnes@gmail.com
File Name: pynndescent/rp_trees.py
Class Name:
Method Name: dense_hyperplane_dim