This mapping is made available in BeamDatasetMetadata and is also used to
resolve vocabularies in tft.TFTransformOutput.
Args
asset_key
The key to associate with the asset.
asset_filename
The filename as it appears within the assets/ subdirectory.
Must be sanitized and complete (e.g. include the tfrecord.gz for suffix
appropriate files).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-01 UTC."],[],[],null,["# tft.annotate_asset\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/transform/blob/v1.16.0/tensorflow_transform/annotators.py#L213-L228) |\n\nCreates mapping between user-defined keys and SavedModel assets. \n\n tft.annotate_asset(\n asset_key: str, asset_filename: str\n )\n\nThis mapping is made available in `BeamDatasetMetadata` and is also used to\nresolve vocabularies in [`tft.TFTransformOutput`](../tft/TFTransformOutput).\n| **Note:** multiple mappings for the same key will overwrite the previous one.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `asset_key` | The key to associate with the asset. |\n| `asset_filename` | The filename as it appears within the assets/ subdirectory. Must be sanitized and complete (e.g. include the tfrecord.gz for suffix appropriate files). |\n\n\u003cbr /\u003e"]]