class_docstr: Class for loading language id data and providing batches
  
  Attempt to recreate data pre-processing from: https://github.com/AU-DIS/LSTM_langid
  
  Uses methods from: https://github.com/AU-DIS/LSTM_langid/blob/main/src/language_datasets.py
  
  Data format is same as LSTM_langid
docstr: Helper to turn batches into tensors
docstr_tok: ["Helper","to","turn","batches","into","tensors"]
code: def build_batch_tensors(self, batch):
      """
      Helper to turn batches into tensors
      """
  
      batch_tensors = dict()
      batch_tensors["sentences"] = torch.tensor(
          [s[0] for s in batch], device=self.device, dtype=torch.long
      )
      batch_tensors["targets"] = torch.tensor(
          [s[1] for s in batch], device=self.device, dtype=torch.long
      )
  
      return batch_tensors
  
file_path: stanza/stanza/models/langid/data.py
imports: import json
  import random
  import torch
label_desc: Use image node_id 4 for calling the DataLoader obj's underlying member method code with example usage: obj.build_batch_tensors(batch) and returns: batch_tensors