Provided are a method and an encoder for encoding a sentence, the method comprising the steps of: generating a word embedding vector for a word in a sentence; generating at least two context attention vectors on the basis of the word embedding vector and hierarchical word information for words collected from an external domain; and generating a sentence embedding vector by combining at least two context attention vectors.
SEMANTIC ROLE LABELING-BASED METHOD AND APPARATUS FOR NEURAL NETWORK CALCULATION