Multi-task Transformer with Relation-attention and Type-attention for Named Entity Recognition