gruut | text cleaner , and phonemizer for many human languages | Natural Language Processing library

 by   rhasspy Python Version: 2.3.4 License: MIT

kandi X-RAY | gruut Summary

kandi X-RAY | gruut Summary

gruut is a Python library typically used in Artificial Intelligence, Natural Language Processing applications. gruut has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install gruut' or download it from GitHub, PyPI.

A tokenizer, text cleaner, and IPA phonemizer for several human languages that supports SSML. Note that "wound" and "read" have different pronunciations when used in different (grammatical) contexts.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              gruut has a low active ecosystem.
              It has 172 star(s) with 22 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 15 open issues and 13 have been closed. On average issues are closed in 41 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of gruut is 2.3.4

            kandi-Quality Quality

              gruut has no bugs reported.

            kandi-Security Security

              gruut has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              gruut is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              gruut releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed gruut and discovered the below as its top functions. This is intended to give you an instant insight into gruut implemented functionality, and help decide if they suit your requirements.
            • Return all sentences in the graph
            • Get the out edges of the given node
            • Return the phonemes for a given break type
            • Find the parent of the given node
            • Run the test
            • Generate graphemes phonemes
            • Compute graphemes
            • Splits a word into punctuations
            • Return True if word is in lexicon
            • Try to transform a date
            • Splits the texts in the given language
            • Split replacements
            • Split the major breaks
            • Break words
            • Split minor breaks
            • Split spell out text
            • Collapse a list of words
            • Transform a word to a currency
            • Convert text to phonemes
            • Convert a fst file to a graph
            • Post - process text processor
            • Process a Word node
            • Handle verbalize
            • Convert a word
            • Get command line arguments
            • Explicitize a time node
            Get all kandi verified functions for this library.

            gruut Key Features

            No Key Features are available at this moment for gruut.

            gruut Examples and Code Snippets

            Gruut,Command-Line Usage,Plain Text
            Pythondot img1Lines of Code : 101dot img1License : Permissive (MIT)
            copy iconCopy
            echo 'This, right here, is some "RAW" text!' \
               | gruut --language en-us \
               | jq --raw-output '.words[].text'
            This
            ,
            right
            here
            ,
            is
            some
            "
            RAW
            "
            text
            !
            
            gruut --language en-us 'More  text.' | jq .
            
            {
              "idx": 0,
              "text": "More text.",
              "text_w  
            Gruut
            Pythondot img2Lines of Code : 61dot img2License : Permissive (MIT)
            copy iconCopy
            from gruut import sentences
            
            text = 'He wound it around the wound, saying "I read it was $10 to read."'
            
            for sent in sentences(text, lang="en-us"):
                for word in sent:
                    if word.phonemes:
                        print(word.text, *word.phonemes)
            
            He h ˈi
              
            Gruut,Command-Line Usage,SSML
            Pythondot img3Lines of Code : 57dot img3License : Permissive (MIT)
            copy iconCopy
            
            
            
              
                
                  
                    tomato
                  
                  
                    
                    t ə m ˈɑ t oʊ
                  
                
                
                  
                    tomato
                  
                  
                    
                    t ə m ˈi t oʊ
                  
                
              
            
              tomato
              
                tomato
                tomato
              
            
            
            
            
            
              
              
                
                  
                    toma  

            Community Discussions

            QUESTION

            (Sub)command synonyms for optparse-applicative
            Asked 2021-Nov-21 at 20:29

            I would like to add synonyms for the subcommands in my Haskell command line tool. For example summarise and summarize should yield the same result. Of course I could just add an entirely separate command summarize, that appears as an own element in the output of --help. But maybe there is a more elegant way.

            Here is a self-contained example in a stack script opt_ex.hs:

            ...

            ANSWER

            Answered 2021-Nov-21 at 20:29

            I don't think you can do this. It works fine for options, because the definition of OptField contains a list of OptName, and adds to that list when you use (<>). But the definition of CommandFields, the thing returned by command, is

            Source https://stackoverflow.com/questions/70057060

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install gruut

            Languages besides English can be added during installation. For example, with French and Italian support:. The extra pip repo is needed for an updated num2words fork that includes support for more languages. You may also manually download language files and use put them in $XDG_CONFIG_HOME/gruut/ ($HOME/.config/gruut by default). gruut will look for language files in the directory $XDG_CONFIG_HOME/gruut/<lang>/ if the corresponding Python package is not installed. Note that <lang> here is the full language name, e.g. de-de instead of just de.

            Support

            The goal is to support all of voice2json's languages.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install gruut

          • CLONE
          • HTTPS

            https://github.com/rhasspy/gruut.git

          • CLI

            gh repo clone rhasspy/gruut

          • sshUrl

            git@github.com:rhasspy/gruut.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Natural Language Processing Libraries

            transformers

            by huggingface

            funNLP

            by fighting41love

            bert

            by google-research

            jieba

            by fxsjy

            Python

            by geekcomputers

            Try Top Libraries by rhasspy

            rhasspy

            by rhasspyShell

            piper

            by rhasspyC++

            larynx

            by rhasspyPython

            rhasspy3

            by rhasspyPython

            larynx2

            by rhasspyC++