I would like to import the Tokenizer
class located in tokenizer.py
script into generate_vocab.py
script. Here's my tree view:
- bin
- tokenizer
- tokenizer.py
- tools
- generate_vocab.py
What I would like to do is to call something like: from ../tokenizer import tokenizer.py
.
Do I need to use a __init__.py
script to make my bin/tokenizer
directory a module and then call from ... import tokenizer
?