def parse(self, sentence):
words = np.zeros((len(sentence) + <NUM_LIT:1>, <NUM_LIT:1>), np.int32)<EOL>tags = np.zeros((len(sentence) + <NUM_LIT:1>, <NUM_LIT:1>), np.int32)<EOL>words[<NUM_LIT:0>, <NUM_LIT:0>] = ParserVocabulary.ROOT<EOL>tags[<NUM_LIT:0>, <NUM_LIT:0>] = ParserVocabulary.ROOT<EOL>vocab = self._vocab<EOL>for i, (word, tag) in enumerate(sentence):<EOL><INDENT>words[i + <NUM_LIT:1>, <NUM_LIT:0>], tags[i + <NUM_LIT:1>, <NUM_LIT:0>] = vocab.word2id(word.lower()), vocab.tag2id(tag)<EOL><DEDENT>with mx.Context(mxnet_prefer_gpu()):<EOL><INDENT>outputs = self._parser.forward(words, tags)<EOL><DEDENT>words = []<EOL>for arc, rel, (word, tag) in zip(outputs[<NUM_LIT:0>][<NUM_LIT:0>], outputs[<NUM_LIT:0>][<NUM_LIT:1>], sentence):<EOL><INDENT>words.append(ConllWord(id=len(words) + <NUM_LIT:1>, form=word, pos=tag, head=arc, relation=vocab.id2rel(rel)))<EOL><DEDENT>return ConllSentence(words)<EOL>
Parse raw sentence into ConllSentence

        Parameters
        ----------
        sentence : list
            a list of (word, tag) tuples

        Returns
        -------
        ConllSentence
            ConllSentence object