I am doing citation function analysis using bilstm. and one of my inputs looks like
[“I”, “compared”, “agglomeration”, “to”, “a”, “top-down”, “method”, “that”, “CITSEG”, “call”, “partitioning”, “around”, “medoids”, “.”].
I need to pass each word to embedding layer followed by bilstm and from the output of bilstm I need to pass only “CITSEG” vector output to linear layer, basically I need to mask all other characters except CITSEG after performing BILSTM and pass only CITSEG to next layers.
could any body share idea how to proceed
Thank you