计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
tokenize-tag-stem【效率与协作】Use NLTK tokenization, detokenization, POS tagging, tagger training, stemming, lemmatization, and sentiment preprocessing APIs without reopening the source repo.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about NLTK text preprocessing: tokenizing or detokenizing strings, running the nltk tokenize CLI, POS-tagging tokens, training simple taggers, stemming or lemmatizing words, or using VADER/basic sentiment preprocessing.
Route away from this sub-skill when the task is mainly about:
../data-and-downloader/SKILL.md.../grammar-parse-semantics/SKILL.md.../ml-metrics-and-translation/SKILL.md.WordPunctTokenizer, TreebankWordTokenizer, TweetTokenizer, or word_tokenize(text, preserve_line=True). sent_tokenize() and word_tokenize(..., preserve_line=False) need Punkt table data for the selected language.nltk tokenize; it reads stdin and exposes --language, --preserve-line, --processes, --encoding, and --delimiter. The bundled CLI smoke checks the installed console script.TweetTokenizer(strip_handles=True, reduce_len=True, preserve_case=...); decide whether phone numbers should be matched with match_phone_numbers.pos_tag(tokens, tagset=None, lang="eng") or a list of token lists to pos_tag_sents. English uses averaged_perceptron_tagger_eng; Russian uses lang="rus" and averaged_perceptron_tagger_rus.RegexpTagger rules with UnigramTagger(train_sents, backoff=...); evaluate with accuracy, evaluate_per_tag, or a ConfusionMatrix when gold tagged sentences are available.PorterStemmer(mode=...), SnowballStemmer(language, ignore_stopwords=False), LancasterStemmer, RegexpStemmer, or language-specific stemmers. Porter and most Snowball workflows do not need NLTK data.WordNetLemmatizer.lemmatize(word, pos="n") depends on WordNet for real morphology; download/check wordnet and omw-2.0 when multilingual or synonym-aware behavior is needed.SentimentIntensityAnalyzer() requires vader_lexicon; route missing lexicon errors to the data/downloader sub-skill. SentimentAnalyzer can build features for a classifier workflow, which then routes to the ML sub-skill.references/api-reference.md.references/workflows.md.punkt_tab, perceptron taggers, universal tagsets, VADER/WordNet data, regex pitfalls, language codes, and CLI/API misuse: references/troubleshooting.md.nltk tokenize with tiny stdin: scripts/tokenize_cli_smoke.py.scripts/text_preprocess_smoke.py.nltk.__version__, the exact API or CLI route, and whether the workflow is allowed to download NLTK data.preserve_line=False) or skipped (preserve_line=True).list[str], not a raw string; for batches, assert list[list[str]].tokenizers/punkt_tab/english/, taggers/averaged_perceptron_tagger_eng/, taggers/universal_tagset/, corpora/wordnet/, or sentiment/vader_lexicon.zip/vader_lexicon/vader_lexicon.txt.None tags.python /path/to/skills/disco/nltk/sub-skills/tokenize-tag-stem/scripts/text_preprocess_smoke.py --json
python /path/to/skills/disco/nltk/sub-skills/tokenize-tag-stem/scripts/tokenize_cli_smoke.py --json