Parsing and Generation for the Abstract Meaning Representation