Petukhova, AlinaFachada, Nuno2022-06-172022-06-172022-07-01Petukhova, A. & Fachada, N. (2022). TextCL: a Python package for NLP preprocessing tasks. SoftwareX, 19. 101122.2352-7110http://hdl.handle.net/10437/12937SoftwareX 19 (2022) 101122Preprocessing text data sets for use in Natural Language Processing tasks is usually a time-consuming and expensive effort. Text data, normally obtained from sources such as, but not limited to, web scraping, scanned documents or PDF files, is typically unstructured and prone to artifacts and other types of noise. The goal of the TextCL package is to simplify this process by providing multiple methods suited for text data preprocessing. It includes functionality for splitting texts into sentences, filtering sentences by language, perplexity filtering, and removing duplicate sentences. Another functionality offered by the TextCL package is the outlier detection module, which allows to identify and filter out texts that are different from the main topic distribution of the data set. This method allows selecting one of several unsupervised outlier detection algorithms, such as TONMF (block coordinate descent framework), RPCA (robust principal component analysis), or SVD (singular value decomposition) and apply it to the text data. Keywords: Natural language processing ; Text filtering ; Outlier detectionapplication/pdfengopenAccessINFORMÁTICAPROCESSAMENTO DE DADOSPROCESSAMENTO DE TEXTOLINGUAGEM NATURALLINGUAGEM PYTHONCOMPUTER SCIENCEDATA PROCESSINGWORD PROCESSINGNATURAL LANGUAGEPYTHON PROGRAMMING LANGUAGETextCL: a Python package for NLP preprocessing tasksarticle