Skip to main content

This module streamlines Python package management, script execution, file handling, web scraping, and multimedia downloads. It supports LLM-based NLP tasks like OCR, tokenization, lemmatization, idiom extraction, POS tagging, NER, ATE, dependency parsing, MDD, WSD, LIWC, MIP analysis, text classification, and Chinese-English sentence alignment. Additionally, it generates word lists and data visualizations, making it a practical tool for data scraping and analysis—ideal for literary students and researchers.

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:

  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, CSV, TSV, XLSX, XML, TMX, 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, convert CSV to JSON, and search for files with specific keywords.
  6. Data Cleaning: Clean text, handle punctuation, remove stopwords, detect noisy text, 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, idiom extraction, POS tagging, NER, dependency parsing, ATE, MDD, WSD, LIWC, MIP analysis, text classification, 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: Dr. Guisheng Pan (潘贵生) is an instructor at the School of Foreign Studies, Shanghai University of Finance and Economics (SUFE). Email: panguisheng@sufe.edu.cn Homepage: https://sfs.sufe.edu.cn/bf/ef/c4221a245743/page.htm

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgsfile-0.7.0.tar.gz (58.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pgsfile-0.7.0-py3-none-any.whl (60.2 MB view details)

Uploaded Python 3

File details

Details for the file pgsfile-0.7.0.tar.gz.

File metadata

  • Download URL: pgsfile-0.7.0.tar.gz
  • Upload date:
  • Size: 58.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for pgsfile-0.7.0.tar.gz
Algorithm Hash digest
SHA256 2edcdb3b4354c27d82db0aa57a910e6208313e85c7c6342a2c042553163495e0
MD5 1d49947bba10b0b8176109accfc8036a
BLAKE2b-256 2208aa8916283fe00b683901e11cb01a463d6f4938c120fbd87deb1ce23449ff

See more details on using hashes here.

File details

Details for the file pgsfile-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: pgsfile-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 60.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for pgsfile-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d050a69cef1aca6d9e6986d5eb966e0106e90f7c4ff626e1428b9f31f451a43
MD5 2172ec9a17f9ebb025906d9a2b90ddac
BLAKE2b-256 07053b2419ac4081d067c41647653d93a3ab997e7df05408b280b57f7ff3d1df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page