Metadata-Version: 2.4
Name: PgsFile
Version: 0.5.3
Summary: This module simplifies Python package management, script execution, file handling, web scraping, and multimedia downloads. The module supports (LLM-based) NLP tasks such as OCR, tokenization, lemmatization, POS tagging, NER, ATE, dependency parsing, MDD, WSD, LIWC, MIP analysis and Chinese-English sentence alignment. It also generates word lists, and plots data, aiding literary students. Ideal for scraping data, cleaning text, and analyzing language, it offers user-friendly tools to streamline workflows.
Author-email: Pan Guisheng <panguisheng@sufe.edu.cn>
License: License :: Free For Educational Use
        
        Copyright (c) 2021-present, GIIT, Shanghai International Studies University.
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/Petercusin/PgsFile
Project-URL: Repository, https://github.com/Petercusin/PgsFile
Classifier: Programming Language :: Python :: 3
Classifier: License :: Free For Educational Use
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: chardet
Requires-Dist: pandas
Requires-Dist: python-docx
Requires-Dist: pip
Requires-Dist: requests
Requires-Dist: fake-useragent
Requires-Dist: lxml
Requires-Dist: pimht
Requires-Dist: pysbd
Requires-Dist: nlpir-python
Requires-Dist: pillow
Requires-Dist: liwc
Dynamic: license-file

Purpose: This module is designed to make complex tasks accessible and convenient, even for beginners. By providing a unified set of tools, it simplifies the workflow for data collection, processing, and analysis. Whether you're scraping data from the web, cleaning text, or performing LLM-based NLP tasks, this module ensures you can focus on your research without getting bogged down by technical challenges.

Key Features:
1. **Web Scraping:** Easily scrape data from websites and download multimedia content.
2. **Package Management:** Install, uninstall, and manage Python packages with simple commands.
3. **Data Retrieval:** Extract data from various file formats like text, JSON, TSV, Excel, XML, and HTML (both online and offline).
4. **Data Storage:** Write and append data to text files, Excel, JSON, TMX, and JSON lines.
5. **File and Folder Processing:** Manage file paths, create directories, move or copy files, and search for files with specific keywords.
6. **Data Cleaning:** Clean text, handle punctuation, remove stopwords, convert Markdown strings into Python objects, and prepare data for analysis, utilizing valuable corpora and dictionaries such as CET-4/6 vocabulary, BE21 and BNC-COCA word lists.
7. **NLP:** Perform OCR, word tokenization, lemmatization, POS tagging, NER, dependency parsing, ATE, MDD, WSD, LIWC, MIP analysis, and Chinese-English sentence alignment using prepared LLM prompts.
8. **Math Operations:** Format numbers, convert decimals to percentages, and validate data.
9. **Visualization:** Process images (e.g., make white pixels transparent, resize images) and manage fonts for rendering text.

Author: Pan Guisheng, a PhD student at the Graduate Institute of Interpretation and Translation of Shanghai International Studies University
Email: 895284504@qq.com
Homepage: https://mp.weixin.qq.com/s/lWMkYDWQMjBJNKY2vMYTpw
