MCPcopy Create free account
hub / github.com/OpenBMB/DecT / __init__

Method __init__

src/process_data.py:312–323  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

310 It was released together with `Few-NERD: Not Only a Few-shot NER Dataset (Ning Ding et al. 2021) <https://arxiv.org/pdf/2105.07464.pdf>`_
311 """
312 def __init__(self):
313 super().__init__()
314 self.labels = [
315 "person-actor", "person-director", "person-artist/author", "person-athlete", "person-politician", "person-scholar", "person-soldier", "person-other",
316 "organization-showorganization", "organization-religion", "organization-company", "organization-sportsteam", "organization-education", "organization-government/governmentagency", "organization-media/newspaper", "organization-politicalparty", "organization-sportsleague", "organization-other",
317 "location-GPE", "location-road/railway/highway/transit", "location-bodiesofwater", "location-park", "location-mountain", "location-island", "location-other",
318 "product-software", "product-food", "product-game", "product-ship", "product-train", "product-airplane", "product-car", "product-weapon", "product-other",
319 "building-theater", "building-sportsfacility", "building-airport", "building-hospital", "building-library", "building-hotel", "building-restaurant", "building-other",
320 "event-sportsevent", "event-attack/battle/war/militaryconflict", "event-disaster", "event-election", "event-protest", "event-other",
321 "art-music", "art-writtenart", "art-film", "art-painting", "art-broadcastprogram", "art-other",
322 "other-biologything", "other-chemicalthing", "other-livingthing", "other-astronomything", "other-god", "other-law", "other-award", "other-disease", "other-medical", "other-language", "other-currency", "other-educationaldegree",
323 ]
324
325 def get_examples(self, data_dir, split):
326 path = os.path.join(data_dir, "supervised/{}.txt".format(split))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected