text stringlengths 81 112k |
|---|
Identify language.
Identifies the language of the input text.
:param str text: Input text in UTF-8 format.
:param dict headers: A `dict` containing the request headers
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
:rtype: DetailedResponse
d... |
Create model.
Uploads Translation Memory eXchange (TMX) files to customize a translation model.
You can either customize a model with a forced glossary or with a corpus that
contains parallel sentences. To create a model that is customized with a parallel
corpus <b>and</b> a forced glos... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'status') and self.status is not None:
_dict['status'] = self.status
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'language') and self.language is not None:
_dict['language'] = self.language
if hasattr(self, 'name') and self.name is no... |
Initialize a IdentifiableLanguages object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a IdentifiableLanguages object from a json dictionary."""
args = {}
if 'languages' in _dict:
args['languages'] = [
IdentifiableLanguage._from_dict(x)
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'languages') and self.languages is not None:
_dict['languages'] = [x._to_dict() for x in self.languages]
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'language') and self.language is not None:
_dict['language'] = self.language
if hasattr(self, 'confidence') and self.conf... |
Initialize a IdentifiedLanguages object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a IdentifiedLanguages object from a json dictionary."""
args = {}
if 'languages' in _dict:
args['languages'] = [
IdentifiedLanguage._from_dict(x)
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(
self,
'translation_output') and self.translation_output is not None:
_dict['translation'] = self.trans... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'model_id') and self.model_id is not None:
_dict['model_id'] = self.model_id
if hasattr(self, 'name') and self.name is no... |
Initialize a TranslationModels object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a TranslationModels object from a json dictionary."""
args = {}
if 'models' in _dict:
args['models'] = [
TranslationModel._from_dict(x) for x in (_dict.get('models... |
Initialize a TranslationResult object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a TranslationResult object from a json dictionary."""
args = {}
if 'word_count' in _dict:
args['word_count'] = _dict.get('word_count')
else:
raise ValueError(
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'word_count') and self.word_count is not None:
_dict['word_count'] = self.word_count
if hasattr(self,
... |
Recognize audio.
Sends audio and returns transcription results for a recognition request. You can
pass a maximum of 100 MB and a minimum of 100 bytes of audio with a request. The
service automatically detects the endianness of the incoming audio and, for audio
that includes multiple cha... |
Register a callback.
Registers a callback URL with the service for use with subsequent asynchronous
recognition requests. The service attempts to register, or white-list, the
callback URL if it is not already registered by sending a `GET` request to the
callback URL. The service passes ... |
Unregister a callback.
Unregisters a callback URL that was previously white-listed with a **Register a
callback** request for use with the asynchronous interface. Once unregistered, the
URL can no longer be used with asynchronous recognition requests.
**See also:** [Unregistering a call... |
Create a custom language model.
Creates a new custom language model for a specified base model. The custom
language model can be used only with the base model for which it is created. The
model is owned by the instance of the service whose credentials are used to create
it.
**Se... |
List custom language models.
Lists information about all custom language models that are owned by an instance
of the service. Use the `language` parameter to see all custom language models for
the specified language. Omit the parameter to see all custom language models for
all languages... |
Train a custom language model.
Initiates the training of a custom language model with new resources such as
corpora, grammars, and custom words. After adding, modifying, or deleting
resources for a custom language model, use this method to begin the actual
training of the model on the l... |
Add a corpus.
Adds a single corpus text file of new training data to a custom language model.
Use multiple requests to submit multiple corpus text files. You must use
credentials for the instance of the service that owns a model to add a corpus to
it. Adding a corpus does not affect the... |
Add a custom word.
Adds a custom word to a custom language model. The service populates the words
resource for a custom model with out-of-vocabulary (OOV) words from each corpus or
grammar that is added to the model. You can use this method to add a word or to
modify an existing word in... |
Add a grammar.
Adds a single grammar file to a custom language model. Submit a plain text file in
UTF-8 format that defines the grammar. Use multiple requests to submit multiple
grammar files. You must use credentials for the instance of the service that owns
a model to add a grammar to... |
Add an audio resource.
Adds an audio resource to a custom acoustic model. Add audio content that reflects
the acoustic characteristics of the audio that you plan to transcribe. You must
use credentials for the instance of the service that owns a model to add an audio
resource to it. Add... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self,
'customization_id') and self.customization_id is not None:
_dict['customization_id'] = self.customization_id
... |
Initialize a AcousticModels object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a AcousticModels object from a json dictionary."""
args = {}
if 'customizations' in _dict:
args['customizations'] = [
AcousticModel._from_dict(x)
for ... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'customizations') and self.customizations is not None:
_dict['customizations'] = [
x._to_dict() for x in self.cus... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'type') and self.type is not None:
_dict['type'] = self.type
if hasattr(self, 'codec') and self.codec is not None:
... |
Initialize a AudioListing object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a AudioListing object from a json dictionary."""
args = {}
if 'duration' in _dict:
args['duration'] = _dict.get('duration')
if 'name' in _dict:
args['name'] = _dict... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'duration') and self.duration is not None:
_dict['duration'] = self.duration
if hasattr(self, 'name') and self.name is no... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'duration') and self.duration is not None:
_dict['duration'] = self.duration
if hasattr(self, 'name') and self.name is no... |
Initialize a AudioResources object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a AudioResources object from a json dictionary."""
args = {}
if 'total_minutes_of_audio' in _dict:
args['total_minutes_of_audio'] = _dict.get('total_minutes_of_audio')
else:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'total_minutes_of_audio'
) and self.total_minutes_of_audio is not None:
_dict['total_minutes_of_audio'] = self.... |
Initialize a Corpora object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a Corpora object from a json dictionary."""
args = {}
if 'corpora' in _dict:
args['corpora'] = [
Corpus._from_dict(x) for x in (_dict.get('corpora'))
]
e... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'corpora') and self.corpora is not None:
_dict['corpora'] = [x._to_dict() for x in self.corpora]
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'word') and self.word is not None:
_dict['word'] = self.word
if hasattr(self, 'sounds_like') and self.sounds_like is not ... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'name') and self.name is not None:
_dict['name'] = self.name
if hasattr(self, 'out_of_vocabulary_words'
... |
Initialize a Grammars object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a Grammars object from a json dictionary."""
args = {}
if 'grammars' in _dict:
args['grammars'] = [
Grammar._from_dict(x) for x in (_dict.get('grammars'))
]
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'grammars') and self.grammars is not None:
_dict['grammars'] = [x._to_dict() for x in self.grammars]
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self,
'normalized_text') and self.normalized_text is not None:
_dict['normalized_text'] = self.normalized_text
... |
Initialize a LanguageModels object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a LanguageModels object from a json dictionary."""
args = {}
if 'customizations' in _dict:
args['customizations'] = [
LanguageModel._from_dict(x)
for ... |
Initialize a RecognitionJob object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a RecognitionJob object from a json dictionary."""
args = {}
if 'id' in _dict:
args['id'] = _dict.get('id')
else:
raise ValueError(
'Required prop... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'id') and self.id is not None:
_dict['id'] = self.id
if hasattr(self, 'status') and self.status is not None:
... |
Initialize a RecognitionJobs object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a RecognitionJobs object from a json dictionary."""
args = {}
if 'recognitions' in _dict:
args['recognitions'] = [
RecognitionJob._from_dict(x)
for x... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'recognitions') and self.recognitions is not None:
_dict['recognitions'] = [x._to_dict() for x in self.recognitions]
retu... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'status') and self.status is not None:
_dict['status'] = self.status
if hasattr(self, 'url') and self.url is not None:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'from_') and self.from_ is not None:
_dict['from'] = self.from_
if hasattr(self, 'to') and self.to is not None:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'name') and self.name is not None:
_dict['name'] = self.name
if hasattr(self, 'language') and self.language is not None:
... |
Initialize a SpeechModels object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a SpeechModels object from a json dictionary."""
args = {}
if 'models' in _dict:
args['models'] = [
SpeechModel._from_dict(x) for x in (_dict.get('models'))
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'transcript') and self.transcript is not None:
_dict['transcript'] = self.transcript
if hasattr(self, 'confidence') and s... |
Initialize a SpeechRecognitionResult object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a SpeechRecognitionResult object from a json dictionary."""
args = {}
if 'final' in _dict or 'final_results' in _dict:
args['final_results'] = _dict.get('final') or _dict.ge... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'final_results') and self.final_results is not None:
_dict['final'] = self.final_results
if hasattr(self, 'alternatives')... |
Initialize a SpeechRecognitionResults object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a SpeechRecognitionResults object from a json dictionary."""
args = {}
if 'results' in _dict:
args['results'] = [
SpeechRecognitionResult._from_dict(x)
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'results') and self.results is not None:
_dict['results'] = [x._to_dict() for x in self.results]
if hasattr(self, 'result... |
Initialize a SupportedFeatures object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a SupportedFeatures object from a json dictionary."""
args = {}
if 'custom_language_model' in _dict:
args['custom_language_model'] = _dict.get('custom_language_model')
els... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'custom_language_model'
) and self.custom_language_model is not None:
_dict['custom_language_model'] = self.cus... |
Initialize a Word object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a Word object from a json dictionary."""
args = {}
if 'word' in _dict:
args['word'] = _dict.get('word')
else:
raise ValueError(
'Required property \'word\' ... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'word') and self.word is not None:
_dict['word'] = self.word
if hasattr(self, 'sounds_like') and self.sounds_like is not ... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'confidence') and self.confidence is not None:
_dict['confidence'] = self.confidence
if hasattr(self, 'word') and self.wo... |
Initialize a WordAlternativeResults object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a WordAlternativeResults object from a json dictionary."""
args = {}
if 'start_time' in _dict:
args['start_time'] = _dict.get('start_time')
else:
raise Va... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'start_time') and self.start_time is not None:
_dict['start_time'] = self.start_time
if hasattr(self, 'end_time') and sel... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'element') and self.element is not None:
_dict['element'] = self.element
return _dict |
Initialize a Words object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a Words object from a json dictionary."""
args = {}
if 'words' in _dict:
args['words'] = [Word._from_dict(x) for x in (_dict.get('words'))]
else:
raise ValueError(
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'words') and self.words is not None:
_dict['words'] = [x._to_dict() for x in self.words]
return _dict |
updateUserTone processes the Tone Analyzer payload to pull out the emotion,
writing and social tones, and identify the meaningful tones (i.e.,
those tones that meet the specified thresholds).
The conversationPayload json object is updated to include these tones.
@param conversationPayload json object re... |
updateEmotionTone updates the user emotion tone with the primary emotion -
the emotion tone that has a score greater than or equal to the
EMOTION_SCORE_THRESHOLD; otherwise primary emotion will be 'neutral'
@param user a json object representing user information (tone) to be used in
conversing with the ... |
updateWritingTone updates the user with the writing tones interpreted based
on the specified thresholds
@param: user a json object representing user information (tone) to be used
in conversing with the Conversation Service
@param: writingTone a json object containing the writing tones in the
payload... |
updateSocialTone updates the user with the social tones interpreted based on
the specified thresholds
@param user a json object representing user information (tone) to be used in
conversing with the Conversation Service
@param socialTone a json object containing the social tones in the payload
retur... |
Synthesize audio.
Synthesizes text to audio that is spoken in the specified voice. The service bases
its understanding of the language for the input text on the specified voice. Use a
voice that matches the language of the input text.
The method accepts a maximum of 5 KB of input text i... |
Update a custom model.
Updates information for the specified custom voice model. You can update metadata
such as the name and description of the voice model. You can also update the words
in the model and their translations. Adding a new translation for a word that
already exists in a c... |
Add a custom word.
Adds a single word and its translation to the specified custom voice model. Adding
a new translation for a word that already exists in a custom model overwrites the
word's existing translation. A custom model can contain no more than 20,000
entries. You must use crede... |
Delete labeled data.
Deletes all data that is associated with a specified customer ID. The method
deletes all data for the customer ID, regardless of the method by which the
information was added. The method has no effect if no data is associated with the
customer ID. You must issue the... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'pronunciation') and self.pronunciation is not None:
_dict['pronunciation'] = self.pronunciation
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'custom_pronunciation'
) and self.custom_pronunciation is not None:
_dict['custom_pronunciation'] = self.custom... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'url') and self.url is not None:
_dict['url'] = self.url
if hasattr(self, 'gender') and self.gender is not None:
... |
Initialize a VoiceModel object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a VoiceModel object from a json dictionary."""
args = {}
if 'customization_id' in _dict:
args['customization_id'] = _dict.get('customization_id')
else:
raise ValueErr... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self,
'customization_id') and self.customization_id is not None:
_dict['customization_id'] = self.customization_id
... |
Initialize a VoiceModels object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a VoiceModels object from a json dictionary."""
args = {}
if 'customizations' in _dict:
args['customizations'] = [
VoiceModel._from_dict(x) for x in (_dict.get('customiz... |
Initialize a Voices object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a Voices object from a json dictionary."""
args = {}
if 'voices' in _dict:
args['voices'] = [
Voice._from_dict(x) for x in (_dict.get('voices'))
]
else:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'voices') and self.voices is not None:
_dict['voices'] = [x._to_dict() for x in self.voices]
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'word') and self.word is not None:
_dict['word'] = self.word
if hasattr(self, 'translation') and self.translation is not ... |
invokeToneConversation calls the Tone Analyzer service to get the
tone information for the user's input text (input['text'] in the payload
json object), adds/updates the user's tone in the payload's context,
and sends the payload to the
conversation service to get a response which is printed to scre... |
Convert document to HTML.
Converts a document to HTML.
:param file file: The document to convert.
:param str filename: The filename for file.
:param str file_content_type: The content type of file.
:param str model: The analysis model to be used by the service. For the **Elemen... |
Classify the elements of a document.
Analyzes the structural and semantic elements of a document.
:param file file: The document to classify.
:param str file_content_type: The content type of file.
:param str model: The analysis model to be used by the service. For the **Element
... |
Compare two documents.
Compares two input documents. Documents must be in the same format.
:param file file_1: The first document to compare.
:param file file_2: The second document to compare.
:param str file_1_content_type: The content type of file_1.
:param str file_2_conten... |
Add feedback.
Adds feedback in the form of _labels_ from a subject-matter expert (SME) to a
governing document.
**Important:** Feedback is not immediately incorporated into the training model,
nor is it guaranteed to be incorporated at a later date. Instead, submitted
feedback i... |
List a specified feedback entry.
Lists a feedback entry with a specified `feedback_id`.
:param str feedback_id: A string that specifies the feedback entry to be included
in the output.
:param str model: The analysis model to be used by the service. For the **Element
classificat... |
List the feedback in a document.
Lists the feedback in a document.
:param str feedback_type: An optional string that filters the output to include
only feedback with the specified feedback type. The only permitted value is
`element_classification`.
:param date before: An option... |
Submit a batch-processing request.
Run Compare and Comply methods over a collection of input documents.
**Important:** Batch processing requires the use of the [IBM Cloud Object Storage
service](https://cloud.ibm.com/docs/services/cloud-object-storage/about-cos.html#about-ibm-cloud-object-stora... |
Initialize a AlignedElement object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a AlignedElement object from a json dictionary."""
args = {}
if 'element_pair' in _dict:
args['element_pair'] = [
ElementPair._from_dict(x) for x in (_dict.get('eleme... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'element_pair') and self.element_pair is not None:
_dict['element_pair'] = [x._to_dict() for x in self.element_pair]
if h... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'function') and self.function is not None:
_dict['function'] = self.function
if hasattr(self, 'input_bucket_location'
... |
Initialize a Batches object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a Batches object from a json dictionary."""
args = {}
if 'batches' in _dict:
args['batches'] = [
BatchStatus._from_dict(x) for x in (_dict.get('batches'))
]
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'batches') and self.batches is not None:
_dict['batches'] = [x._to_dict() for x in self.batches]
return _dict |
Initialize a BodyCells object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a BodyCells object from a json dictionary."""
args = {}
if 'cell_id' in _dict:
args['cell_id'] = _dict.get('cell_id')
if 'location' in _dict:
args['location'] = Locati... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'cell_id') and self.cell_id is not None:
_dict['cell_id'] = self.cell_id
if hasattr(self, 'location') and self.location i... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'label') and self.label is not None:
_dict['label'] = self.label
if hasattr(self, 'provenance_ids') and self.provenance_i... |
Initialize a ClassifyReturn object from a json dictionary.
def _from_dict(cls, _dict):
"""Initialize a ClassifyReturn object from a json dictionary."""
args = {}
if 'document' in _dict:
args['document'] = Document._from_dict(_dict.get('document'))
if 'model_id' in _dict:
... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'document') and self.document is not None:
_dict['document'] = self.document._to_dict()
if hasattr(self, 'model_id') and ... |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self, 'id') and self.id is not None:
_dict['id'] = self.id
return _dict |
Return a json dictionary representing this model.
def _to_dict(self):
"""Return a json dictionary representing this model."""
_dict = {}
if hasattr(self,
'text_normalized') and self.text_normalized is not None:
_dict['text_normalized'] = self.text_normalized
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.