Skip to content

ibede/gen-a-town

Repository files navigation

gen-a-town

What?

Imaginary town name generator based on real town names in a country. A small fun project for generating town names that are "similar" to real town names in a given country. Currently available for Hungarian town names.

How?

The project uses 2 pre-trained Character-based RNN models to predict new town names. Both models received the current ~3100 hungarian town names as training input. Training took around 25-30 minutes for both models on my old gen4 i7 with Python 3.11, so it's not a big deal.

Why?

Well, in Hungary there are a lot of town/township names that has no real meaning and sounds interesting or very similar to real, even funny words when pronounced. Also I wanted to get some experience with neural networks, so I thought why not try this method out.

To try it out

In main.py set training = False. By default it is False.

%> pip install
%> python ./main.py

What's next

  • Command-line arguments
  • Refactor: configurable hyperparams and training params
  • Try out new models
  • Add other countries maybe
  • Dockerize
  • Web app to make it easily accessable

About

Imaginary town name generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages