Encode uris.
Updates ner to store relevance values.
Keep previous state.