Skip to content

Instantly share code, notes, and snippets.

@strubell
Created February 13, 2018 16:43
Show Gist options
  • Save strubell/cc3ab1bfcb879a07f58ec69919e5b004 to your computer and use it in GitHub Desktop.
Save strubell/cc3ab1bfcb879a07f58ec69919e5b004 to your computer and use it in GitHub Desktop.
fields
if self.conll:
vocab_files = [(self.word_file, 1, 'Words'),
(self.tag_file, [3, 4], 'Tags'),
(self.rel_file, 7, 'Rels')]
elif self.conll2012:
vocab_files = [(self.word_file, 3, 'Words'),
(self.tag_file, [5, 4], 'Tags'), # auto, gold
(self.rel_file, 7, 'Rels'),
(self.srl_file, range(14, 50), 'SRLs'),
(self.trig_file, [10, 4] if self.joint_pos_predicates else 10, 'Trigs'),
(self.domain_file, 0, 'Domains')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment