সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
টেনসরফ্লো :: অপস:: ইউনিকোড ট্রান্সকোড:: Attrs
#include <string_ops.h>
ইউনিকোডট্রান্সকোডের জন্য ঐচ্ছিক অ্যাট্রিবিউট সেটার।
সারাংশ
পাবলিক ফাংশন |
---|
Errors (StringPiece x) | ইনপুটে অবৈধ বিন্যাস পাওয়া গেলে নীতি পরিচালনার ত্রুটি৷ |
ReplaceControlCharacters (bool x) | C0 নিয়ন্ত্রণ অক্ষর (00-1F) replacement_char char দিয়ে প্রতিস্থাপন করা হবে কিনা। |
ReplacementChar (int64 x) | errors='replace' হলে ইনপুটে যেকোনো অবৈধ বিন্যাসের জায়গায় ব্যবহার করা প্রতিস্থাপন অক্ষর কোডপয়েন্ট। |
পাবলিক বৈশিষ্ট্য
ত্রুটি_
StringPiece tensorflow::ops::UnicodeTranscode::Attrs::errors_ = "replace"
প্রতিস্থাপন_নিয়ন্ত্রণ_অক্ষর_
bool tensorflow::ops::UnicodeTranscode::Attrs::replace_control_characters_ = false
প্রতিস্থাপন_চার_
int64 tensorflow::ops::UnicodeTranscode::Attrs::replacement_char_ = 65533
পাবলিক ফাংশন
ত্রুটি
TF_MUST_USE_RESULT Attrs tensorflow::ops::UnicodeTranscode::Attrs::Errors(
StringPiece x
)
ইনপুটে অবৈধ বিন্যাস পাওয়া গেলে নীতি পরিচালনার ত্রুটি৷
'কঠোর' মান অপারেশনটিকে যে কোনো অবৈধ ইনপুট বিন্যাসে একটি InvalidArgument ত্রুটি তৈরি করবে। 'প্রতিস্থাপন' (ডিফল্ট) এর একটি মান অপারেশনটিকে ইনপুটে যেকোনো অবৈধ বিন্যাস replacement_char
কোডপয়েন্ট দিয়ে প্রতিস্থাপন করবে। 'উপেক্ষা' এর একটি মান অপারেশনটিকে ইনপুটে কোনো অবৈধ বিন্যাস এড়িয়ে যেতে এবং কোনো সংশ্লিষ্ট আউটপুট অক্ষর তৈরি করবে না।
ডিফল্ট "প্রতিস্থাপন"
কন্ট্রোল অক্ষর প্রতিস্থাপন করুন
TF_MUST_USE_RESULT Attrs tensorflow::ops::UnicodeTranscode::Attrs::ReplaceControlCharacters(
bool x
)
C0 নিয়ন্ত্রণ অক্ষর (00-1F) replacement_char
char দিয়ে প্রতিস্থাপন করা হবে কিনা।
ডিফল্ট মিথ্যা.
ডিফল্ট থেকে মিথ্যা
প্রতিস্থাপন চর
TF_MUST_USE_RESULT Attrs tensorflow::ops::UnicodeTranscode::Attrs::ReplacementChar(
int64 x
)
errors='replace'
হলে ইনপুটে যেকোনো অবৈধ বিন্যাসের জায়গায় ব্যবহার করা প্রতিস্থাপন অক্ষর কোডপয়েন্ট।
যেকোনো বৈধ ইউনিকোড কোডপয়েন্ট ব্যবহার করা যেতে পারে। ডিফল্ট মান হল ডিফল্ট ইউনিকোড প্রতিস্থাপন অক্ষর হল 0xFFFD বা U+65533।)
মনে রাখবেন যে UTF-8-এর জন্য, 1 বাইটে প্রকাশযোগ্য একটি প্রতিস্থাপন অক্ষর পাস করা, যেমন ' ', উৎসে স্ট্রিং সারিবদ্ধকরণ সংরক্ষণ করবে কারণ অবৈধ বাইট 1-বাইট প্রতিস্থাপনের সাথে প্রতিস্থাপিত হবে। UTF-16-BE এবং UTF-16-LE-এর জন্য, যেকোনো 1 বা 2 বাইট প্রতিস্থাপন অক্ষর উৎসে বাইট সারিবদ্ধকরণ সংরক্ষণ করবে।
65533 এ ডিফল্ট
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-26 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-26 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# tensorflow::ops::UnicodeTranscode::Attrs Struct Reference\n\ntensorflow::ops::UnicodeTranscode::Attrs\n========================================\n\n`#include \u003cstring_ops.h\u003e`\n\nOptional attribute setters for [UnicodeTranscode](/versions/r2.0/api_docs/cc/class/tensorflow/ops/unicode-transcode#classtensorflow_1_1ops_1_1_unicode_transcode).\n\nSummary\n-------\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------------------------------------------|---------------|\n| [errors_](#structtensorflow_1_1ops_1_1_unicode_transcode_1_1_attrs_1abcd1383b9be66c3a3bb38f35eb35d7c8)` = \"replace\"` | `StringPiece` |\n| [replace_control_characters_](#structtensorflow_1_1ops_1_1_unicode_transcode_1_1_attrs_1a98f8a37849498e2da67eac2ad35642a2)` = false` | `bool` |\n| [replacement_char_](#structtensorflow_1_1ops_1_1_unicode_transcode_1_1_attrs_1afe5534f218249f3369c91e047af3775b)` = 65533` | `int64` |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Errors](#structtensorflow_1_1ops_1_1_unicode_transcode_1_1_attrs_1ab1e6a46bf9d2cc08d188a8f65ce5af5f)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/unicode-transcode/attrs#structtensorflow_1_1ops_1_1_unicode_transcode_1_1_attrs) Error handling policy when there is invalid formatting found in the input. |\n| [ReplaceControlCharacters](#structtensorflow_1_1ops_1_1_unicode_transcode_1_1_attrs_1a14ef90d95676aea36bd25eb2589cf726)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/unicode-transcode/attrs#structtensorflow_1_1ops_1_1_unicode_transcode_1_1_attrs) Whether to replace the C0 control characters (00-1F) with the `replacement_char`. |\n| [ReplacementChar](#structtensorflow_1_1ops_1_1_unicode_transcode_1_1_attrs_1aff6611b37bc42f8b41c1341a2588c7eb)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/unicode-transcode/attrs#structtensorflow_1_1ops_1_1_unicode_transcode_1_1_attrs) The replacement character codepoint to be used in place of any invalid formatting in the input when `errors='replace'`. |\n\nPublic attributes\n-----------------\n\n### errors_\n\n```scdoc\nStringPiece tensorflow::ops::UnicodeTranscode::Attrs::errors_ = \"replace\"\n``` \n\n### replace_control_characters_\n\n```scdoc\nbool tensorflow::ops::UnicodeTranscode::Attrs::replace_control_characters_ = false\n``` \n\n### replacement_char_\n\n```scdoc\nint64 tensorflow::ops::UnicodeTranscode::Attrs::replacement_char_ = 65533\n``` \n\nPublic functions\n----------------\n\n### Errors\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::UnicodeTranscode::Attrs::Errors(\n StringPiece x\n)\n``` \nError handling policy when there is invalid formatting found in the input.\n\nThe value of 'strict' will cause the operation to produce a InvalidArgument error on any invalid input formatting. A value of 'replace' (the default) will cause the operation to replace any invalid formatting in the input with the `replacement_char` codepoint. A value of 'ignore' will cause the operation to skip any invalid formatting in the input and produce no corresponding output character.\n\nDefaults to \"replace\" \n\n### ReplaceControlCharacters\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::UnicodeTranscode::Attrs::ReplaceControlCharacters(\n bool x\n)\n``` \nWhether to replace the C0 control characters (00-1F) with the `replacement_char`.\n\nDefault is false.\n\nDefaults to false \n\n### ReplacementChar\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::UnicodeTranscode::Attrs::ReplacementChar(\n int64 x\n)\n``` \nThe replacement character codepoint to be used in place of any invalid formatting in the input when `errors='replace'`.\n\n[Any](/versions/r2.0/api_docs/cc/class/tensorflow/ops/any#classtensorflow_1_1ops_1_1_any) valid unicode codepoint may be used. The default value is the default unicode replacement character is 0xFFFD or U+65533.)\n\nNote that for UTF-8, passing a replacement character expressible in 1 byte, such as ' ', will preserve string alignment to the source since invalid bytes will be replaced with a 1-byte replacement. For UTF-16-BE and UTF-16-LE, any 1 or 2 byte replacement character will preserve byte alignment to the source.\n\nDefaults to 65533"]]