class_docstr: Uses sine & cosine to represent position
class_docstr_tok: ["Uses","sine","&","cosine","to","represent","position"]
code: def __init__(self, model_dim, max_len):
      super().__init__()
      self.register_buffer(
          "pe", self.build_position(model_dim, max_len)
      )
  
file_path: stanza/stanza/models/constituency/positional_encoding.py
imports: import math
  import torch
  from torch import nn
label_desc: Use image node_id 1 to create a new SinusoidalEncoding object from inherited base classes: nn with example: obj = SinusoidalEncoding(model_dim, max_len)