Pyramid: A Layered Model for Nested Named Entity Recognition