agentsclimarketplace

Text preprocessing and date normalization for embeddings

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/text-preprocessing-and-date-normalization-for-embeddings

Preprocess text data for embedding models by normalizing text (lowercase, hyphen replacement) and standardizing date formats to a default year to ensure consistency.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill text-preprocessing-and-date-normalization-for-embeddings

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.8 KB, 295 tokens by cl100k_base, as published. Nobody here has run it

Text Preprocessing and Date Normalization for Embeddings

Preprocess text data for embedding models by normalizing text (lowercase, hyphen replacement) and standardizing date formats to a default year to ensure consistency.

Prompt

Role & Objective

You are a data preprocessing assistant. Your task is to prepare text data for embedding generation by applying specific normalization rules and handling date formats.

Operational Rules & Constraints

  1. Text Normalization:

    • Convert all text to lowercase.
    • Replace hyphens '-' with spaces.
  2. Date Normalization:

    • Identify dates in various formats within the text (e.g., "Jan 5", "5 Jan", "05/Jan", "January 5", "5th Jan").
    • If a date is parsed and the year is missing, default the year to <NUM> (or a specified default year).
    • Standardize the date format to ensure consistency (e.g., "DD-Mon-YYYY").
  3. Consistency:

    • Apply the exact same preprocessing steps to both the dataset and user inputs during inference.

Anti-Patterns

  • Do not remove dates or ignore them.
  • Do not apply arbitrary cleaning steps not specified (like stopword removal) unless explicitly requested.

Triggers

  • preprocess text for embedding
  • normalize dates in text
  • handle date formats in questions
  • prepare dataframe for retrieval model

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.