Comments (2)
The deletion is by design. The applications for which this method were originally designed required that only segments that were converted from orthography to IPA be present in the X-SAMPA output. The Epitran.strict_trans method does that. Epitran.transliterate allows every character that cannot be mapped to IPA to "pass through" to the output. In noisy data this can produce some unexpected results. For example, many of the output segments will not be valid IPA and cannot be converted to X-SAMPA.
(I'm confused by the Swedish example, though. This appears to be due to errors in the mapping file.)
If you want something like this, the best solution is to add another method, rather than change the existing one which already does what we want it to do. Submit a pull request and I'll add this.
from epitran.
Thanks for the answer. I thought it might be something like that at first, but the swedish example also seemed strange to me.
from epitran.
Related Issues (20)
- TL;DR if you have troubles pipping epitran, try pip install marisa-trie first
- Possibility of using regex for generating geminates HOT 2
- Stress and syllables splitting HOT 1
- FileNotFoundError for code 'cmn-Latn' HOT 3
- Many Chinese words are not transcribed by cmn-Hans/cmn-Hant
- import epitran shows an error HOT 10
- Not able to pip install problem with building Edit Distance HOT 1
- Portuguese dictionary is missing entry for รตe
- Loading mapping files from other locations HOT 1
- Greek transliteration
- `panphon>=0.20` required but latest release it panphon 0.19.1 HOT 1
- How to judge whether the input text is "continuous single letter pronunciation" or "word pronunciation"
- Update tests
- IndexError: list index out of range HOT 2
- Reverse Transliterate looks for CSV file that doesn't exist in ~\data\map\ HOT 1
- Epitran overwrites global logging object with highest level
- Extraneous unicode character in Kazakh HOT 3
- Punjabi 2 diacritic symbols separated from associated character HOT 2
- Errors when instantiating using certain codes HOT 4
- Best way to get a delimited transliteration with XSampa HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epitran.