Improving Reinforcement Learning for Neural Relation Extraction with Hierarchical Memory Extractor