OpenQuizz
Une application de gestion des contenus pédagogiques
Language Class Reference
Inheritance diagram for Language:
Collaboration diagram for Language:

Public Member Functions

def __init__ (self, name=None, iso_code=None, use_ascii=True, charsets=None, alphabet=None, wiki_start_pages=None)
 
def __repr__ (self)
 

Data Fields

 name
 
 iso_code
 
 use_ascii
 
 charsets
 
 alphabet
 
 wiki_start_pages
 

Detailed Description

Metadata about a language useful for training models

:ivar name: The human name for the language, in English.
:type name: str
:ivar iso_code: 2-letter ISO 639-1 if possible, 3-letter ISO code otherwise,
                or use another catalog as a last resort.
:type iso_code: str
:ivar use_ascii: Whether or not ASCII letters should be included in trained
                 models.
:type use_ascii: bool
:ivar charsets: The charsets we want to support and create data for.
:type charsets: list of str
:ivar alphabet: The characters in the language's alphabet. If `use_ascii` is
                `True`, you only need to add those not in the ASCII set.
:type alphabet: str
:ivar wiki_start_pages: The Wikipedia pages to start from if we're crawling
                        Wikipedia for training data.
:type wiki_start_pages: list of str

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  name = None,
  iso_code = None,
  use_ascii = True,
  charsets = None,
  alphabet = None,
  wiki_start_pages = None 
)

Member Function Documentation

◆ __repr__()

def __repr__ (   self)

Field Documentation

◆ alphabet

alphabet

◆ charsets

charsets

◆ iso_code

iso_code

◆ name

name

◆ use_ascii

use_ascii

◆ wiki_start_pages

wiki_start_pages

The documentation for this class was generated from the following file: