CoolFace
Apppublic

gr8testgad-1/Movie-Review-Analysis

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
text_preprocessing.cpython-311.pyc8 linesDownload Raw Back to __pycache__
1�

2�5eg��~�ddlZddlZejd��Zeejjj��Zej	Z3d�ZdS)�N�en_core_web_smc�b�t|��}d�|D��}d�|��S)Nc�T�g|]%}|jtv�|jtv�|j��&S�)�text�	stopwords�punctuations)�.0�tokens  �MC:\Users\Israel Anaba\Desktop\Movie_Review_Analysis\src\text_preprocessing.py�4<listcomp>z process_text.<locals>.<listcomp>s3��
l�
l�
l�U�U�Z�y�-H�-H�U�Z�_k�Mk�Mk�e�j�Mk�Mk�Mk�� )�nlp�join)r�doc�tokenss   r�process_textr5s2��6
�d�)�)�C�
l�
l�c�
l�
l�
l�F��8�8�F���r)�spacy�string�loadr�set�lang�en�7STOP_WORDSr�punctuationr	rrrr�<module>rsb��
����
�
�
�
��e�j�!�"�"���C��8�
�(�)�)�	��!������r