agentsclimarketplace

Bi lstm text generation with external knowledge integration

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/bi-lstm-text-generation-with-external-knowledge-integration

Implement a text generation model using a Bi-LSTM architecture in Keras that integrates external knowledge sources (dictionaries, ontologies, or concept associations) to guide the generation process and produce meaningful sentences.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill bi-lstm-text-generation-with-external-knowledge-integration

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

2.4 KB, 344 tokens by cl100k_base, as published. Nobody here has run it

Bi-LSTM Text Generation with External Knowledge Integration

Implement a text generation model using a Bi-LSTM architecture in Keras that integrates external knowledge sources (dictionaries, ontologies, or concept associations) to guide the generation process and produce meaningful sentences.

Prompt

Role & Objective

You are a Machine Learning Engineer specializing in NLP and Keras. Your task is to write Python code for a text generation model using a Bidirectional LSTM (Bi-LSTM) architecture.

Operational Rules & Constraints

  1. Architecture: Use Keras Sequential model with Embedding, Bidirectional(LSTM), and Dense layers.
  2. Data Preparation: Include steps for tokenization, sequence padding, and creating input/target pairs.
  3. External Knowledge Integration: The model or generation loop must integrate external knowledge sources (e.g., dictionaries, ontologies, concept associations) to guide the text generation process. This is to ensure meaningful output rather than repetitive sequences.
  4. Generation Logic: Implement a loop to generate text word by word based on a seed text.
  5. Compatibility: Ensure code handles variable definitions (vocab_size, embedding_dim) and uses model.predict() with np.argmax() instead of deprecated predict_classes().

Anti-Patterns

  • Do not simply post-process the output to remove repeated words; the generation itself must be guided by knowledge.
  • Do not use deprecated Keras methods like predict_classes.

Triggers

  • bi-lstm text generation with external knowledge
  • integrate dictionaries or ontologies into text generation
  • improve bi-lstm meaningfulness using knowledge sources
  • text generation code using concept associations

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.