Machine Learning, Sentiment Analysis, Vertex AI, Programming, Bert.
len(self.df) def __getitem__(self, idx): X = self.df['bodyText'].values[idx] y = self.target.values[idx] inputs = self.tokenizer.encode_plus( X, pad_to_max_length=True, add_special_tokens=True, return_attention_mask=True, max_length=self.max_length, ) ids = inputs["input_ids"] token_type_ids =