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

Loading mapping files from other locations #141

Open
le-doude opened this issue Oct 24, 2022 · 1 comment
Open

Loading mapping files from other locations #141

le-doude opened this issue Oct 24, 2022 · 1 comment

Comments

@le-doude
Copy link

Goal

I am using epitran in a quick project but I'd like to keep my install clean.
Is it possible to point Epitran to an external folder where I define my own custom mappings?
For full disclosure I am trying to create a jpn-Jpan mapping.

Even something simple like this:

import epitran
epi = epitran.Epitran('/my/mappinps/data/map/jpn-Jpan.csv', '/my/mappinps/data/pre/jpn-Jpan.txt', '/my/mappinps/data/post/jpn-Jpan.txt')
@dmort27
Copy link
Owner

dmort27 commented Oct 24, 2022

Unfortunately, there is not currently a way to do this (because Epitran has focused on being self-contained). Of course, it would be possible to add this, but I'm not able to do this right now). I suppose I would add a --path keyword argument that would add that hierarchy to the search path, If I were doing this. If you would like to submit a PR, we will accept it.

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

No branches or pull requests

2 participants