r-glpk-phonetic-languages-ukrainian-durations 0.2.0.0 → 0.2.1.0
raw patch · 4 files changed
+11/−8 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +7/−4
- Main.hs +2/−2
- Numeric/Wrapper/R/GLPK/Phonetics/Ukrainian/Durations.hs +1/−1
- r-glpk-phonetic-languages-ukrainian-durations.cabal +1/−1
CHANGELOG.md view
@@ -23,8 +23,11 @@ ## 0.2.0.0 -- 2020-11-10 -* Second version. Added a new function answer2 that allows to change the randomization boundaries for the model (this allows, e. g. to research accents). Added the possibility to -specify up to 4 randomization boundaries as the 4 first command line arguments (otherwise, the default values are used). Please, be aware of possible violating the dependencies -between durations of the sounds because of inappropriately chosen randomization parameters (sometimes the dependencies can violate also for the appropriately chosen durations -though it less common in such a case). +* Second version. Added a new function answer2 that allows to change the randomization boundaries for the model (this allows, e. g. to research accents). Added the possibility to+specify up to 4 randomization boundaries as the 4 first command line arguments (otherwise, the default values are used). Please, be aware of possible violating the dependencies+between durations of the sounds because of inappropriately chosen randomization parameters (sometimes the dependencies can violate also for the appropriately chosen durations+though it less common in such a case). +## 0.2.1.0 -- 2020-11-10++* Second version revised. Made narrower the default possible randomization parameters (now, the default behaviour is like for 0.1.4.0 version).
Main.hs view
@@ -40,8 +40,8 @@ else do let min1 = - abs (fromMaybe (-0.003) (readMaybe (concat . take 1 $ args)::Maybe Double)) max1 = abs (fromMaybe 0.003 (readMaybe (concat . drop 1. take 2 $ args)::Maybe Double))- min2 = - abs (fromMaybe (-0.012) (readMaybe (concat . drop 2 . take 3 $ args)::Maybe Double))- max2 = abs (fromMaybe 0.012 (readMaybe (concat . drop 3 . take 4 $ args)::Maybe Double))+ min2 = - abs (fromMaybe (-0.0012) (readMaybe (concat . drop 2 . take 3 $ args)::Maybe Double))+ max2 = abs (fromMaybe 0.0012 (readMaybe (concat . drop 3 . take 4 $ args)::Maybe Double)) arGs = dropWhile (all (not . isAlpha)) args processMentG arGs
Numeric/Wrapper/R/GLPK/Phonetics/Ukrainian/Durations.hs view
@@ -145,7 +145,7 @@ -- | A variant of the more general 'answer2' where the randomization parameters are used to produce every time being run a new result (e. g. this -- allows to model accents). answer :: VB.Vector Double -> [String] -> [Double] -> [Double] -> String -> String-answer = answer2 (-0.003) 0.003 (-0.012) 0.012+answer = answer2 (-0.003) 0.003 (-0.0012) 0.0012 answer2 :: Double -> Double -> Double -> Double -> VB.Vector Double -> [String] -> [Double] -> [Double] -> String -> String answer2 min1 max1 min2 max2 lsts bss xs ys js = mconcat ["library(\"Rglpk\")",newLineEnding,objLine lsts,matrixLine bss js (length bss),dirLine bss js,
r-glpk-phonetic-languages-ukrainian-durations.cabal view
@@ -3,7 +3,7 @@ -- http://haskell.org/cabal/users-guide/ name: r-glpk-phonetic-languages-ukrainian-durations-version: 0.2.0.0+version: 0.2.1.0 synopsis: Can be used to calculate the durations of the approximations of the Ukrainian phonemes. description: Can be used to calculate the durations of the approximations of the Ukrainian phonemes using some prepared text with its correct (at least mostly) pronunciation. The prepared text is located in the same directory and contains lines --- the Ukrainian word and its duration in seconds separated with whitespace. homepage: https://hackage.haskell.org/package/r-glpk-phonetic-languages-ukrainian-durations