Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Markov random text generator #7

Merged
merged 8 commits into from
Jan 22, 2021
Merged

Implement Markov random text generator #7

merged 8 commits into from
Jan 22, 2021

Conversation

yujinyan
Copy link
Owner

@yujinyan yujinyan commented Jan 8, 2021

Resolves #4

Changelist

  • removed javafaker dependency
  • fixed typo facktory in package name
  • addded Markov random text generator

Issue regarding loading text from resources dir

Given this directory structure

src
    test
        kotlin
            GeneratorTest // use textGenerator here does not work
    testFixtures
        kotlin
            textGenerator // define text generator here
        resources
            hello.txt

where

val textGenerator = MarkovGenerator().aply {
    loadTextResource(''/hello.txt'')
}

@yujinyan yujinyan changed the title Implement markov random text generator Implement Markov random text generator Jan 8, 2021
@yujinyan yujinyan marked this pull request as ready for review January 22, 2021 07:59
@yujinyan yujinyan merged commit f4cd6cf into master Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add helper methods to generate text
1 participant