ধাপ 1: ডেটা সংগ্রহ করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
যেকোন তত্ত্বাবধানে থাকা মেশিন লার্নিং সমস্যা সমাধানের সবচেয়ে গুরুত্বপূর্ণ ধাপ হল ডেটা সংগ্রহ করা। আপনার টেক্সট ক্লাসিফায়ার শুধুমাত্র ততটা ভালো হতে পারে যতটা ডেটাসেট থেকে তৈরি করা হয়েছে।
আপনার যদি কোনো নির্দিষ্ট সমস্যা না থাকে যা আপনি সমাধান করতে চান এবং শুধুমাত্র সাধারণভাবে পাঠ্য শ্রেণিবিন্যাস অন্বেষণ করতে আগ্রহী হন, তবে প্রচুর ওপেন সোর্স ডেটাসেট উপলব্ধ রয়েছে। আপনি আমাদের GitHub রেপোতে তাদের কিছু লিঙ্ক খুঁজে পেতে পারেন। অন্যদিকে, আপনি যদি একটি নির্দিষ্ট সমস্যা মোকাবেলা করছেন, আপনাকে প্রয়োজনীয় তথ্য সংগ্রহ করতে হবে। অনেক প্রতিষ্ঠান তাদের ডেটা অ্যাক্সেস করার জন্য সর্বজনীন API প্রদান করে—উদাহরণস্বরূপ, X API বা NY Times API । আপনি যে সমস্যাটি সমাধান করার চেষ্টা করছেন তার জন্য আপনি এই API গুলিকে ব্যবহার করতে সক্ষম হতে পারেন৷
তথ্য সংগ্রহ করার সময় এখানে কিছু গুরুত্বপূর্ণ বিষয় মনে রাখতে হবে:
- আপনি যদি একটি সর্বজনীন API ব্যবহার করেন তবে সেগুলি ব্যবহার করার আগে API এর সীমাবদ্ধতাগুলি বুঝুন৷ উদাহরণস্বরূপ, কিছু এপিআই আপনি যে হারে প্রশ্ন করতে পারেন তার একটি সীমা নির্ধারণ করে।
- আপনার কাছে যত বেশি প্রশিক্ষণের উদাহরণ (এই গাইডের বাকি অংশে নমুনা হিসাবে উল্লেখ করা হয়েছে) তত ভাল। এটি আপনার মডেলকে আরও ভালোভাবে সাধারণীকরণ করতে সাহায্য করবে।
- নিশ্চিত করুন যে প্রতিটি ক্লাস বা বিষয়ের জন্য নমুনার সংখ্যা অতিরিক্ত ভারসাম্যহীন নয়। অর্থাৎ, প্রতিটি ক্লাসে আপনার তুলনামূলক সংখ্যক নমুনা থাকা উচিত।
- নিশ্চিত করুন যে আপনার নমুনাগুলি শুধুমাত্র সাধারণ ক্ষেত্রেই নয়, সম্ভাব্য ইনপুটগুলির স্থানকে পর্যাপ্তভাবে কভার করে৷
এই নির্দেশিকা জুড়ে, আমরা ইন্টারনেট মুভি ডেটাবেস (IMDb) মুভি রিভিউ ডেটাসেট ব্যবহার করব কর্মপ্রবাহকে চিত্রিত করতে। এই ডেটাসেটে আইএমডিবি ওয়েবসাইটে লোকেদের দ্বারা পোস্ট করা মুভি রিভিউ রয়েছে, সেইসাথে সংশ্লিষ্ট লেবেলগুলি ("ইতিবাচক" বা "নেতিবাচক") যা নির্দেশ করে যে পর্যালোচক মুভিটি পছন্দ করেছেন কিনা। এটি একটি অনুভূতি বিশ্লেষণ সমস্যার একটি ক্লাসিক উদাহরণ।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eHigh-quality data is crucial for building effective supervised machine learning text classifiers, with more training samples generally leading to better performance.\u003c/p\u003e\n"],["\u003cp\u003ePublic APIs and open-source datasets can be leveraged for data collection, but it's important to understand API limitations and ensure data balance across classes.\u003c/p\u003e\n"],["\u003cp\u003eAdequate data representation across all possible input variations is necessary, and the IMDb movie reviews dataset will be used to demonstrate text classification workflow for sentiment analysis.\u003c/p\u003e\n"],["\u003cp\u003eWhen collecting data, aim for a balanced dataset with a sufficient number of samples for each class to avoid imbalanced datasets and promote better model generalization.\u003c/p\u003e\n"]]],[],null,["Gathering data is the most important step in solving any supervised machine\nlearning problem. Your text classifier can only be as good as the dataset it is\nbuilt from.\n\nIf you don't have a specific problem you want to solve and are just interested\nin exploring text classification in general, there are plenty of open source\ndatasets available. You can find links to some of them in our [GitHub\nrepo](https://github.com/google/eng-edu/blob/master/ml/guides/text_classification/load_data.py).\nOn the other hand, if you are tackling a specific problem,\nyou will need to collect the necessary data. Many organizations provide public\nAPIs for accessing their data---for example, the\n[X API](https://developer.x.com/docs) or the\n[NY Times API](http://developer.nytimes.com/). You may be able to leverage\nthese APIs for the problem you are trying to solve.\n\nHere are some important things to remember when collecting data:\n\n- If you are using a public API, understand the *limitations* of the API before using them. For example, some APIs set a limit on the rate at which you can make queries.\n- The more training examples (referred to as *samples* in the rest of this guide) you have, the better. This will help your model [generalize](/machine-learning/glossary#generalization) better.\n- Make sure the number of samples for every *class* or topic is not overly [imbalanced](/machine-learning/glossary#class_imbalanced_data_set). That is, you should have comparable number of samples in each class.\n- Make sure that your samples adequately cover the *space of possible inputs*, not only the common cases.\n\nThroughout this guide, we will use the [Internet Movie Database (IMDb) movie\nreviews dataset](http://ai.stanford.edu/%7Eamaas/data/sentiment/) to illustrate\nthe workflow. This dataset contains movie reviews posted by people on the IMDb\nwebsite, as well as the corresponding labels (\"positive\" or \"negative\")\nindicating whether the reviewer liked the movie or not. This is a classic\nexample of a sentiment analysis problem."]]