import torch import torch.nn.functional as F # Simple example: Which word is most important? sentence = ["I", "love", "pizza"] importance = torch.tensor([0.1, 0.3, 0.6]) # pizza is most important