Skip to main content
Version: 0.91

snorkelflow.rich_docs.TextClusters

class snorkelflow.rich_docs.TextClusters(word_to_cluster, df_clusters)

Bases: Serializable

Serializable wrapper for horizontal clusters of words.

__init__(word_to_cluster, df_clusters)

Methods

__init__(word_to_cluster, df_clusters)

deserialize(serialized)

Deserialize instance to string.

serialize()

Serialize instance to string.

classmethod deserialize(serialized)

Deserialize instance to string.

Return type:

Any

serialize()

Serialize instance to string.

Return type:

str