{'fraction_non_alphanumeric': 0.02048780487804878, 'fraction_numerical': 0.000975609756097561, 'mean_word_length': 5.071005917159764, '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}}
Word sense disambiguation based on positional weighted context

Word sense disambiguation (WSD) is a key factor in solving natural language processing problems. The purpose of WSD is to make computers automatically determine the specific meaning of a word in a specific context. In this regard, state-of-art studies have focussed on the co-occurrences of words to measure context similarity. However, a problem with these approaches is that they consider all the words within a certain range to have equal influence on the ambiguous word. In this paper, we propose a position-based algorithm for measuring context similarity. By assigning positional weights to context words, we compared the context similarity between a new instance and pre-labelled instances to determine the appropriate sense of the ambiguous word. Experiments on the Senseval-2 English lexical sample task showed that our algorithm can achieve good precision and recall. Even in a minimally supervised state, it performs well with few training instances.