计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
custom-models-and-extensions【效率与协作】Build TextBlob-compatible custom models, Blobber shared factories, extensions, and classifier format handoffs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task needs a custom or third-party TextBlob model object: tokenizer, POS tagger, noun phrase extractor, sentiment analyzer, parser, classifier adapter, language package, or extension package.
Stay here for:
textblob.base interfaces.TextBlob(...) or Blobber(...).Blobber.Route away when the user wants:
TextBlob workflows: ../core-nlp-workflows/SKILL.md.../classifiers-and-data-formats/SKILL.md.Word, WordList, spelling, morphology, stemming, lemmatization, or WordNet: ../word-and-lexical-tools/SKILL.md.TextBlob and Blobber accept tokenizer, pos_tagger, np_extractor, analyzer, parser, and classifier. Constructor signatures are compatible with TextBlob(text, tokenizer=None, pos_tagger=None, np_extractor=None, analyzer=None, parser=None, classifier=None, clean_html=False) and Blobber(tokenizer=None, pos_tagger=None, np_extractor=None, analyzer=None, parser=None, classifier=None).BaseTokenizer.tokenize/itokenize, BaseTagger.tag, BaseNPExtractor.extract, BaseSentimentAnalyzer.analyze/train, and BaseParser.parse.ValueError; NLTK tokenizer instances are accepted for tokenizer; classifier is not base-class validated but must provide the methods the workflow calls.Blobber for shared models. Prefer Blobber(tokenizer=..., analyzer=..., pos_tagger=...) when many texts should use the same trained or configured model instances. Each blob made by the factory receives the same model objects.textblob-name -> textblob_name, language packages textblob-xx).python scripts/custom_model_smoke.py --json verifies tiny custom models, TextBlob/Blobber acceptance, shared model identity, and invalid tagger rejection without writing files or downloading corpora.ValueError: pos_tagger must be an instance of BaseTagger means TextBlob requires inheritance, not only a tag method. Recover by subclassing BaseTagger; see the minimal adapter in references/troubleshooting.md..tokens but punctuation appears unexpectedly in .words, remember that punctuation filtering is special to TextBlob's default word tokenizer. Custom tokenizers own their output..polarity or .subjectivity, check .sentiment; TextBlob's convenience .polarity and .subjectivity use the built-in pattern analyzer.TextBlob(...).tags fails before your tagger runs, the default sentence segmentation path may need NLTK sentence data. For a no-corpus custom tagger smoke, exercise Sentence(...).tags or run the root setup check.textblob-name, Python import uses textblob_name.