Agent skill

nlp-basics

Process and analyze text using modern NLP techniques - preprocessing, embeddings, and transformers

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill nlp-basics --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 6 KB
Bundled scripts: none
Version: 1.4.0
Path: skills/ai-ml/nlp-basics/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# NLP Basics Skill > Transform unstructured text into structured insights. ## Quick Start ```python from transformers import AutoTokenizer, AutoModel import torch # Load model and tokenizer tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased') model = AutoModel.from_pretrained('bert-base-uncased') # Tokenize text = "Machine learning is transforming industries." inputs = tokenizer(text, return_tensors='pt', padding=True, truncation=True) # Get embeddings with torch.no_grad(): outputs = model(**inputs) embeddings = outputs.last_hidden_state.mean(dim=1) # [CLS] pooling print(f"Embedding shape: {embeddings.shape}") ``` ## Key Topics ### 1. Text Preprocessing ```python import re from nltk.tokenize import word_tokenize from nltk.corpus import stopwords from nltk.stem import WordNetLemmatizer class TextPreprocessor: def __init__(self): self.lemmatizer = WordNetLemmatizer() self.stop_words = set(stopwords.words('english')) def clean(self, text): # Lowercase text = text.lower() # Remove URLs text = re.sub(r'http\S+', '', text) # Remove special chars text = re.sub(r'[^\w\s]', '', text) # Tokenize and filter tokens = word_tokenize(text) tokens = [self.lemmatizer.lemmatize(t) for t in

What's inside
Steps it walks through
  1. Quick Start
  2. Key Topics
  3. 1. Text Preprocessing
  4. 2. Word Embeddings
  5. 3. Text Classification
  6. 4. Named Entity Recognition
  7. 5. Semantic Search
  8. Best Practices
  9. DO
  10. DON'T
  11. Exercises
  12. Exercise 1: Sentiment Analysis
  13. Exercise 2: Semantic Search
  14. Unit Test Template
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the nlp-basics skill do?

Process and analyze text using modern NLP techniques - preprocessing, embeddings, and transformers

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill nlp-basics --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going