executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
grammar-parse-semanticsUse NLTK grammars, parsers, chunkers, trees, dependency graphs, semantic logic, and inference APIs without reopening the source repo.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is about NLTK grammar authoring, parse-tree generation or inspection, regular-expression chunking, dependency graph handling, semantic interpretation, logic expressions, or theorem-proving/model-building wrappers.
Route away from this sub-skill when the task is mainly about:
../data-and-downloader/SKILL.md first.../tokenize-tag-stem/SKILL.md when available.../ml-metrics-and-translation/SKILL.md.CFG.fromstring(...), PCFG.fromstring(...), or FeatureGrammar.fromstring(...); then parse already-tokenized input with ChartParser, RecursiveDescentParser, ShiftReduceParser, ViterbiParser, or feature chart parsers.grammar.check_coverage(tokens), casing, punctuation, and the grammar start symbol before changing parser strategy.ChartParser or chart strategy subclasses and count/inspect all returned trees. Use ShiftReduceParser only when a single heuristic parse is acceptable; it can miss parses in ambiguous grammars.RegexpParser POS-tagged tuples such as [('the', 'DT'), ('dog', 'NN')]; chunk grammars operate over tags, not raw words.Tree.fromstring, label(), leaves(), treepositions(), subtrees(), productions(), pformat(), chomsky_normal_form(), and collapse_unary() rather than manually traversing nested lists.DependencyGraph; use DependencyEvaluator only after verifying equal token sequences.Expression.fromstring, evaluate with Valuation, Assignment, and Model, and use FeatureGrammar SEM features when connecting parse trees to semantic representations.references/api-reference.md.references/workflows.md.references/troubleshooting.md.scripts/grammar_parse_smoke.py.nltk.__version__, Python version, and the parser or grammar class being used.grammar.check_coverage(tokens) succeeds before interpreting an empty parse list.RegexpParser, assert input is POS-tagged, run tree2conlltags() or inspect Tree subtrees, and document whether nested chunks are expected.Model.evaluate(...) result; handle 'Undefined' separately from False.python /path/to/skills/disco/nltk/sub-skills/grammar-parse-semantics/scripts/grammar_parse_smoke.py --help
python /path/to/skills/disco/nltk/sub-skills/grammar-parse-semantics/scripts/grammar_parse_smoke.py --json