Exemplo n.º 1
0
 def encode(cls, obj: textblob.TextBlob) -> str:
     # Dump the TextBlob object to JSON
     # This loses a lot of information
     # Unfortunately, TextBlob provides no way to serialize/deserialize objects
     return obj.to_json()