We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25817b5 commit 2ebc759Copy full SHA for 2ebc759
1 file changed
semhash/utils.py
@@ -126,6 +126,7 @@ def featurize(
126
:param model: An Encoder model.
127
:return: The embeddings of the records.
128
:raises ValueError: If a column is missing from one or more records.
129
+ :raises TypeError: If encoding fails due to incompatible data types.
130
"""
131
# Extract the embeddings for each column across all records
132
embeddings_per_col = []
@@ -141,7 +142,7 @@ def featurize(
141
142
raise TypeError(
143
f"Failed to encode column '{col}' (data type: {sample_type}). "
144
f"If encoding non-text data, provide a compatible encoder via the `model` parameter. "
- f"See our documentation for more info."
145
+ f"See the SemHash documentation for more info."
146
) from e
147
embeddings_per_col.append(np.asarray(col_emb))
148
0 commit comments