TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
text Namespace Reference

Namespaces

 cleaners
 
 cmudict
 
 numbers
 
 symbols
 

Functions

def text_to_sequence (text, cleaner_names)
 
def sequence_to_text (sequence)
 
def _clean_text (text, cleaner_names)
 
def _symbols_to_sequence (symbols)
 
def _arpabet_to_sequence (text)
 
def _should_keep_symbol (s)
 

Variables

dictionary _symbol_to_id = {s: i for i, s in enumerate(symbols)}
 
dictionary _id_to_symbol = {i: s for i, s in enumerate(symbols)}
 
 _curly_re = re.compile(r'(.*?)\{(.+?)\}(.*)')
 

Detailed Description

from https://github.com/keithito/tacotron 

Function Documentation

◆ text_to_sequence()

def text.text_to_sequence (   text,
  cleaner_names 
)
Converts a string of text to a sequence of IDs corresponding to the symbols in the text.

  The text can optionally have ARPAbet sequences enclosed in curly braces embedded
  in it. For example, "Turn left on {HH AW1 S S T AH0 N} Street."

  Args:
    text: string to convert to a sequence
    cleaner_names: names of the cleaner functions to run the text through

  Returns:
    List of integers corresponding to the symbols in the text
Here is the call graph for this function:

◆ sequence_to_text()

def text.sequence_to_text (   sequence)
Converts a sequence of IDs back to a string

◆ _clean_text()

def text._clean_text (   text,
  cleaner_names 
)
private
Here is the caller graph for this function:

◆ _symbols_to_sequence()

def text._symbols_to_sequence (   symbols)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _arpabet_to_sequence()

def text._arpabet_to_sequence (   text)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _should_keep_symbol()

def text._should_keep_symbol (   s)
private
Here is the caller graph for this function:

Variable Documentation

◆ _symbol_to_id

dictionary text._symbol_to_id = {s: i for i, s in enumerate(symbols)}
private

◆ _id_to_symbol

dictionary text._id_to_symbol = {i: s for i, s in enumerate(symbols)}
private

◆ _curly_re

text._curly_re = re.compile(r'(.*?)\{(.+?)\}(.*)')
private