Locally adaptive translation for knowledge graph embedding