This module simplifies Python package management, script execution, file handling, web scraping, and multimedia downloads. The module supports (LLM-based) NLP tasks such as tokenization, lemmatization, POS tagging, NER, keywords extraction, dependency parsing, MDD, WSD, LIWC, and MIP analysis. 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.
Project description
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:
- Web Scraping: Easily scrape data from websites and download multimedia content.
- Package Management: Install, uninstall, and manage Python packages with simple commands.
- Data Retrieval: Extract data from various file formats like text, JSON, TSV, Excel, XML, and HTML (both online and offline).
- Data Storage: Write and append data to text files, Excel, JSON, and JSON lines.
- File and Folder Processing: Manage file paths, create directories, move or copy files, and search for files with specific keywords.
- Data Cleaning: Clean text, handle punctuation, remove stopwords, and prepare data for analysis, utilizing valuable corpora and dictionaries such as CET-4/6 vocabulary and BNC-COCA word lists.
- NLP: Perform word tokenization, lemmatization, POS tagging, NER, dependency parsing, keywords extraction, MDD, WSD, LIWC, and MIP analysis using prepared LLM prompts.
- Math Operations: Format numbers, convert decimals to percentages, and validate data.
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file PgsFile-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: PgsFile-0.4.0-py3-none-any.whl
- Upload date:
- Size: 39.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
25361da0107ff9b3f522784eb849cb59a1a7cd0374b21122aec3880b5803746b
|
|
MD5 |
163ba94aeea36f11400a92e7499bbe2a
|
|
BLAKE2b-256 |
007aba7e412b85deb8ba4f07dd0967a18be7571b34c111d1999c9638b5ca2b66
|