packages feed

uniqueness-periods-vector-examples 0.12.0.0 → 0.12.1.0

raw patch · 5 files changed

+21/−13 lines, 5 filesdep ~uniqueness-periods-vector-propertiesPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: uniqueness-periods-vector-properties

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -124,3 +124,7 @@ * Twelfth version. Updated dependencies, switched to the [Float] only versions of the FuncRep and inner functions. Introduced a new textual command line argument that allows to choose which metrices (called \"properties\") to use from uniqueness-periods-vector-properties package. Made a package containing also two libraries which shares the common functions.++## 0.12.1.0 -- 2020-10-10++* Twelfth version revised A. Fixed issue with wrongly defined control parameters in the lineVariants executable. 
Languages/UniquenessPeriods/Vector/FuncRepRelated.hs view
@@ -18,12 +18,14 @@ chooseMax xs   | xs == "y0" = procDiverse2F   | xs == "0y" = procRhythmicity23F-  | otherwise = procBothF+  | xs == "y" = procBothF+  | otherwise = procBothInvF  -- | Allows to choose the variant of the computations in case of minimum lookup. Uses @-neg@ variants. chooseMin :: String -> FuncRep String (UniquenessGeneral2 Char) [Float] chooseMin xs   | xs == "y0" = procDiverse2Fneg   | xs == "0y" = procRhythmicity23Fneg-  | otherwise = procBothFneg+  | xs == "y" = procBothFneg+  | otherwise = procBothInvFneg 
Lines/Main.hs view
@@ -34,8 +34,10 @@ import Languages.UniquenessPeriods.Vector.FuncRepRelated  -- | The function allows to rewrite the Ukrainian text in the file given as the first command line argument to a new file. In between, it is rewritten--- so that every last word on the lines is preserved at theirs position, and the rest of the line is rearranged using the specified other command line--- arguments. They are general for the whole program. The further command line arguments are: the number of the intervals and the numbers of the intervals+-- so that every last word on the lines is preserved at its position, and the rest of the line is rearranged using the specified other command line+-- arguments. They are general for the whole program. The first command line argument is a FilePath to the file with a Ukrainian text to be rewritten.+-- The second one is a variant of the metrics (\"properties\") used to evaluate the variants.+-- The further command line arguments are: the number of the intervals and the numbers of the intervals -- that are swapped with the maximum one so that they are available for further usage by the program. See documentation for @uniqueness-periods-vector-filters@ -- package -- 'https://hackage.haskell.org/package/uniqueness-periods-vector-filters'
Simple/Main.hs view
@@ -31,7 +31,6 @@ import Languages.UniquenessPeriods.Vector.Data import Data.Char (isDigit) import Data.List (span,sort)---import GHC.Float (int2Float) import Languages.UniquenessPeriods.Vector.FuncRepRelated  -- | Prints the rearrangements with the \"property\" information for the Ukrainian language text. The first command line argument must be a@@ -39,7 +38,8 @@ -- The second one is the number of the intervals into which the all range of possible metrics values are divided. The next numeric arguments that must be -- sequenced without interruptions further are treated as the numbers of the intervals (counting is started from 1) which values are moved to the maximum -- values of the metrics interval using the 'unsafeSwapVecIWithMaxI' function. The first textual command line argument should be in the form either \"y0\",--- or \"0y\", or \"yy\" and specifies, which property or properties is or are evaluated. The rest of the command line arguments is the Ukrainian text.+-- or \"0y\", or \"yy\", or \"y\" and specifies, which property or properties is or are evaluated.+-- The rest of the command line arguments is the Ukrainian text. -- -- The most interesting is the first line of the output. But other ones also are noteworthy. main :: IO ()@@ -48,8 +48,8 @@   let (!numericArgs,!textualArgs) = span (all isDigit) args       !arg0 = fromMaybe 1 $ (readMaybe (concat . take 1 $ numericArgs)::Maybe Int)       !numberI = fromMaybe 1 $ (readMaybe (concat . drop 1 . take 2 $ numericArgs)::Maybe Int)-      !choice = concat . take 1 . prepareText . unwords $ textualArgs-      !xs = concat . drop 1 . take 2 . prepareText . unwords $ textualArgs+      !choice = concat . take 1 $ textualArgs+      !xs = concat . take 1 . prepareText . unwords . drop 1 $ textualArgs   if compare numberI 2 == LT then printUniquenessG1ListStr (I1 H) . fst . get22 . uniqNProperties2GN " 01-" K arg0 1 (V.singleton (oneProperty))     (chooseMax choice) . unwords . prepareText $ xs   else do
uniqueness-periods-vector-examples.cabal view
@@ -3,7 +3,7 @@ -- http://haskell.org/cabal/users-guide/  name:                uniqueness-periods-vector-examples-version:             0.12.0.0+version:             0.12.1.0 synopsis:            Usage examples for the uniqueness-periods-vector series of packages description:         Usage examples for the uniqueness-periods-vector series of packages. Several executables are planned to demonstrate the libraries work. homepage:            https://hackage.haskell.org/package/uniqueness-periods-vector-examples@@ -21,7 +21,7 @@   exposed-modules:     Languages.UniquenessPeriods.Vector.FuncRepRelated, Data.Statistics.RulesIntervals   -- other-modules:   other-extensions:    BangPatterns-  build-depends:       base >=4.7 && <4.15, uniqueness-periods-vector >=0.3 && <1, uniqueness-periods-vector-common >=0.5 && <1, uniqueness-periods-vector-properties >=0.5.3 && <1, lists-flines >=0.1.1 && <1+  build-depends:       base >=4.7 && <4.15, uniqueness-periods-vector >=0.3 && <1, uniqueness-periods-vector-common >=0.5 && <1, uniqueness-periods-vector-properties >=0.5.4 && <1, lists-flines >=0.1.1 && <1   -- hs-source-dirs:   default-language:    Haskell2010 @@ -29,7 +29,7 @@   main-is:             Main.hs   other-modules:       Languages.UniquenessPeriods.Vector.FuncRepRelated   other-extensions:    BangPatterns-  build-depends:       base >=4.7 && <4.15, mmsyn6ukr >=0.8.1 && <1, vector >=0.11 && <0.14, uniqueness-periods-vector >=0.3 && <1, uniqueness-periods-vector-general >=0.5 && < 1, uniqueness-periods-vector-common >=0.5 && <1, uniqueness-periods-vector-properties >=0.5.3 && <1, print-info >=0.1.3 && <1, phonetic-languages-ukrainian >=0.2.3 && <1, parallel >=3.2.0.6 && <4, uniqueness-periods-vector-filters >=0.3 && <1+  build-depends:       base >=4.7 && <4.15, mmsyn6ukr >=0.8.1 && <1, vector >=0.11 && <0.14, uniqueness-periods-vector >=0.3 && <1, uniqueness-periods-vector-general >=0.5 && < 1, uniqueness-periods-vector-common >=0.5 && <1, uniqueness-periods-vector-properties >=0.5.4 && <1, print-info >=0.1.3 && <1, phonetic-languages-ukrainian >=0.2.3 && <1, parallel >=3.2.0.6 && <4, uniqueness-periods-vector-filters >=0.3 && <1   ghc-options:         -threaded -rtsopts   hs-source-dirs:      ., Simple   default-language:    Haskell2010@@ -38,7 +38,7 @@   main-is:             Main.hs   other-modules:       Languages.UniquenessPeriods.Vector.FuncRepRelated   other-extensions:    BangPatterns-  build-depends:       base >=4.7 && <4.15, mmsyn6ukr >=0.8.1 && <1, vector >=0.11 && <0.14, uniqueness-periods-vector >=0.3 && <1, uniqueness-periods-vector-general >=0.5 && < 1, uniqueness-periods-vector-common >=0.5 && <1, uniqueness-periods-vector-properties >=0.5.3 && <1, print-info >=0.1.3 && <1, phonetic-languages-ukrainian >=0.2.3 && <1, parallel >=3.2.0.6 && <4, uniqueness-periods-vector-filters >=0.3 && <1+  build-depends:       base >=4.7 && <4.15, mmsyn6ukr >=0.8.1 && <1, vector >=0.11 && <0.14, uniqueness-periods-vector >=0.3 && <1, uniqueness-periods-vector-general >=0.5 && < 1, uniqueness-periods-vector-common >=0.5 && <1, uniqueness-periods-vector-properties >=0.5.4 && <1, print-info >=0.1.3 && <1, phonetic-languages-ukrainian >=0.2.3 && <1, parallel >=3.2.0.6 && <4, uniqueness-periods-vector-filters >=0.3 && <1   ghc-options:         -threaded -rtsopts   hs-source-dirs:      ., Lines   default-language:    Haskell2010@@ -47,7 +47,7 @@   main-is:             Main.hs   other-modules:       Languages.UniquenessPeriods.Vector.FuncRepRelated, Data.Statistics.RulesIntervals   other-extensions:    CPP, BangPatterns, FlexibleInstances, MultiParamTypeClasses-  build-depends:       base >=4.7 && <4.15, mmsyn6ukr >=0.8.1 && <1, vector >=0.11 && <0.14, uniqueness-periods-vector >=0.3 && <1, uniqueness-periods-vector-general >=0.5 && < 1, uniqueness-periods-vector-common >=0.5 && <1, uniqueness-periods-vector-properties >=0.5.3 && <1, print-info >=0.1.3 && <1, phonetic-languages-ukrainian >=0.2.3 && <1, uniqueness-periods-vector-filters >=0.3 && <1, uniqueness-periods-vector-stats >=0.1.2 && <1, parallel >=3.2.0.6 && <4, lists-flines >=0.1.1 && <1+  build-depends:       base >=4.7 && <4.15, mmsyn6ukr >=0.8.1 && <1, vector >=0.11 && <0.14, uniqueness-periods-vector >=0.3 && <1, uniqueness-periods-vector-general >=0.5 && < 1, uniqueness-periods-vector-common >=0.5 && <1, uniqueness-periods-vector-properties >=0.5.4 && <1, print-info >=0.1.3 && <1, phonetic-languages-ukrainian >=0.2.3 && <1, uniqueness-periods-vector-filters >=0.3 && <1, uniqueness-periods-vector-stats >=0.1.2 && <1, parallel >=3.2.0.6 && <4, lists-flines >=0.1.1 && <1   ghc-options:         -threaded -rtsopts   hs-source-dirs:      ., Proportion   default-language:    Haskell2010