Implementing torchvision focal loss

I have two questions regarding the focal loss in torchvision library (focal loss)

  1. Can I use it for text classification?
    if yes:
  2. I have an imbalanced dataset in which class 0 has 100 examples and class 1 has 30. How should I set the alpha parameter?