{'fraction_non_alphanumeric': 0.019286403085824494, 'fraction_numerical': 0.0048216007714561235, 'mean_word_length': 5.407407407407407, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Subsequence-Level Entity Attention LSTM for Relation Extraction

Relation extraction is a basic component in many knowledge base construction systems aiming at discovering structured facts from raw sentences. Traditional neural network models directly encode raw sentences to obtain semantic features based on which the relations are extracted. However, few efforts have been made to fully exploit the text between the entities that often contains important relation information. Therefore, our paper propose a subsequence-level entity attention LSTM network (EA-LSTM) for relation extraction. EA-LSTM first splits the input sentence into two subsequences which have duplicate content of the text between entities. An entity attention mechanism is then introduced in feature fusion stage to guide the model to selectively attend to the potential relation information of entities. The experimental results on the SemEval-2010 Task 8 dataset show that EA-LSTM is comparable to state-of-the-art systems even without using external features.