concrete.language package¶
-
class
concrete.language.ttypes.
LanguageIdentification
(uuid=None, metadata=None, languageToProbabilityMap=None)¶ Bases:
object
A theory about what languages are present in a given communicationor piece of communication. Note that it is possible to have morethan one language present in a given communication.Attributes:- uuid: Unique identifier for this language identification.- metadata: Information about where this language identification came from.- languageToProbabilityMap: A list mapping from a language to the probability that thatlanguage occurs in a given communication. Each language code shouldoccur at most once in this list. The probabilities do <i>not</i>need to sum to one – for example, if a single communication is knownto contain both English and French, then it would be appropriateto assign a probability of 1 to both langauges. (Manuallyannotated LanguageProb objects should always have probabilitiesof either zero or one; machine-generated LanguageProbs may haveintermediate probabilities.)Note: The string key should represent the ISO 639-3 three-letter code.-
read
(iprot)¶
-
validate
()¶
-
write
(oprot)¶
-