Skip to content

Instantly share code, notes, and snippets.

@ShawonAshraf
Created January 24, 2022 11:18
Show Gist options
  • Save ShawonAshraf/604ffc87d4b44f489673bd5872d48443 to your computer and use it in GitHub Desktop.
Save ShawonAshraf/604ffc87d4b44f489673bd5872d48443 to your computer and use it in GitHub Desktop.
sample I/O for set8
#input
['S',
['NP-SBJ',
['NP',
['DT', 'The'],
['NN', 'cat']
]
],
['VP',
['VB', 'chases'],
['NP-PRD',
['NP',
['DT', 'the'],
['NN', 'mouse']
]
]
],
['.', '.']
]
# output
(S (NP-SBJ (NP (DT The)(NN cat)))(VP (VB chases)(NP-PRD (NP (DT the)(NN mouse))))(. .))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment