Spaces:
Runtime error
Runtime error
jerome-white
commited on
Commit
•
e1118d8
1
Parent(s):
06d7446
Make the parent abstract to follow the template pattern more closely
Browse files- mylib/_citations.py +3 -0
mylib/_citations.py
CHANGED
@@ -35,6 +35,9 @@ class CitationParser:
|
|
35 |
document = self.client.files.retrieve(a.file_citation.file_id)
|
36 |
yield Citation(a.text, *self.extract(a, document.filename))
|
37 |
|
|
|
|
|
|
|
38 |
class StandardCitationParser(CitationParser):
|
39 |
def extract(self, annotation, document):
|
40 |
reference = next(self)
|
|
|
35 |
document = self.client.files.retrieve(a.file_citation.file_id)
|
36 |
yield Citation(a.text, *self.extract(a, document.filename))
|
37 |
|
38 |
+
def extract(self, annotation, document):
|
39 |
+
raise NotImplementedError()
|
40 |
+
|
41 |
class StandardCitationParser(CitationParser):
|
42 |
def extract(self, annotation, document):
|
43 |
reference = next(self)
|