SchweitzerGAO / rasa-train-generator

A Rasa chatbot training data generator. Undergraduate Graduate Project Part II
Apache License 2.0
1 stars 0 forks source link

Does not work for English #1

Open CodePeacock opened 1 year ago

CodePeacock commented 1 year ago

@SchweitzerGAO

I've tried generating intents in English. Is there a workaround to solve this issue. It works fine for Chinese(Simplified). Let me know if you need any additional information

My code:

from rasa_gen import NLUTemplate, Generator

if __name__ == '__main__':
    sentence_template = [
        'create[{}]{{"entity":"board_name","role":"name"}} in trello',

    ]
    word_template = [
        'demo', 'test', 'status', 'complete', 'task', 'create', 'update', 'rename'
    ]
    template = NLUTemplate().add_sentence(sentence_template)\
        .add_word(word_template)
generator = Generator('create_board').add_template(template)
generator.generate_from_template(20, './test_template.yml')
SchweitzerGAO commented 2 months ago

So sorry for this late response. If you are still utilizing this library, please let me know how the code behaves and if there are any errors. I shall consider rewrite this by yaml if time allows