77 lines
4.4 KiB
Python
77 lines
4.4 KiB
Python
"""Reviewed edition-specific scope; never alias entire source classifications."""
|
|
|
|
HISTORY_URL = 'https://aclanthology.org/www.mt-archive.info/70/ACL-1982-Walker-1.pdf'
|
|
NOTICE_URL = 'https://aclanthology.org/J77-4001.pdf'
|
|
BOOK = 'Theoretical Issues in Natural Language Processing-2'
|
|
MATERIAL_TITLE = 'List of questions suggested for consideration in each session'
|
|
|
|
|
|
def text(node):
|
|
return ' '.join(''.join(node.itertext()).split()) if node is not None else ''
|
|
|
|
|
|
def event_scope(meta, volume, collection):
|
|
if (collection, volume) == ('1963.earlymt', '1'):
|
|
return amtcl1963_scope(meta)
|
|
if (collection, volume) != ('T78', '1'):
|
|
return None
|
|
if ([text(n) for n in meta.findall('venue')] != ['tinlap']
|
|
or [text(n) for n in meta.findall('year')] != ['1978']
|
|
or [text(n) for n in meta.findall('booktitle')] != [BOOK]
|
|
or [(text(n.find('first')), text(n.find('last'))) for n in meta.findall('editor')]
|
|
!= [('David L.', 'Waltz')]):
|
|
raise ValueError('Reviewed T78-1 scope metadata changed; independent review required')
|
|
return {
|
|
'collection': 'T78', 'volume': '1', 'original_venue': 'TINLAP',
|
|
'event_year': 1978, 'event_dates': ['1978-07-25', '1978-07-27'],
|
|
'relationship': 'ACL annual meeting took the form of TINLAP-2',
|
|
'canonical_venue': 'ACL+TINLAP', 'venue_aliases': ['ACL', 'TINLAP'],
|
|
'track': 'proceedings_unspecified',
|
|
'track_scope_note': 'Invited and submitted contributions are described at volume level; individual roles are not identified in XML.',
|
|
'evidence': [
|
|
{'url': NOTICE_URL, 'sha256': '14b5deb471c55afb07d789529b95d0462a2a1a77df3dfba7fa1f5d3ab75eb411',
|
|
'pdf_pages': [9, 10], 'printed_pages': ['9', '10'],
|
|
'scope': 'Contemporary annual meeting notice, not individual decision notes; ACM confirmation was pending in this notice.'},
|
|
{'url': HISTORY_URL, 'sha256': '35c21bd4983975bcaccbb94bd8ab91c9019fc190feec1791255407cf18a7e49a',
|
|
'pdf_pages': [3], 'printed_pages': ['91'],
|
|
'scope': 'Retrospective annual meeting table and TNLP abbreviation confirm the 1978 event association.'},
|
|
],
|
|
}
|
|
|
|
|
|
def amtcl1963_scope(meta):
|
|
expected = {
|
|
'venue': ['earlymt'], 'year': ['1963'],
|
|
'booktitle': ['Proceedings of the Annual meeting of the Association for Machine Translation and Computational Linguistics'],
|
|
'address': ['Denver, Colorado'], 'month': ['25-26 August'],
|
|
}
|
|
if any([text(n) for n in meta.findall(field)] != values
|
|
for field, values in expected.items()):
|
|
raise ValueError('Reviewed AMTCL 1963 scope metadata changed; independent review required')
|
|
return {
|
|
'collection': '1963.earlymt', 'volume': '1', 'original_venue': 'EarlyMT',
|
|
'original_event_name': 'Association for Machine Translation and Computational Linguistics',
|
|
'event_year': 1963, 'event_dates': ['1963-08-25', '1963-08-26'],
|
|
'relationship': 'Annual meeting under the former name of ACL; EarlyMT is the source classification, not a global ACL alias.',
|
|
'canonical_venue': 'ACL', 'venue_aliases': ['ACL', 'AMTCL'],
|
|
'track': 'proceedings_unspecified',
|
|
'track_scope_note': 'Published abstracts with named authors; individual submission tracks and original decision notes are not supplied.',
|
|
'publication_format': 'published_abstract',
|
|
'evidence': [
|
|
{'url': 'https://2023.aclweb.org/participants/about_acl/',
|
|
'sha256': '0f6bc260c2b34c9e2a51d971aeb43c3270a5b15b6db1d6d41e50669f316345f3',
|
|
'scope': 'Official ACL history identifies AMTCL as the former name, changed to ACL in 1968.'},
|
|
{'url': 'https://github.com/acl-org/acl-anthology/blob/a7be623d01c48c61405dec31c871121cdbed5a01/data/xml/1963.earlymt.xml',
|
|
'sha256': '4a4626d792ac507de0281cb358769f7246f4a0d6b6a9176ac02e61545c1635fc',
|
|
'scope': 'Official XML supplies the exact annual meeting title, dates, location and 34 contributions; hash is XML, not HTML.'},
|
|
],
|
|
}
|
|
|
|
|
|
def material_reason(collection, volume, paper):
|
|
if (collection, volume, paper.attrib.get('id')) != ('T78', '1', '36'):
|
|
return None
|
|
if text(paper.find('title')) != MATERIAL_TITLE or paper.findall('author'):
|
|
raise ValueError('Reviewed T78-1036 material changed; independent review required')
|
|
return 'Session question list, not an authored research contribution; no decision inferred.'
|