facebookresearch / gtn

Automatic differentiation with weighted finite-state transducers.
MIT License
453 stars 40 forks source link

Add some simple examples using gtn compose #44

Closed awni closed 3 years ago

awni commented 3 years ago

Add two new examples:

  1. Compute the edit distance using GTN compose and viterbiScore
  2. Count ngrams using GTN compose and forwardScore