facebookresearch / gtn_applications

Applications using the GTN library and code to reproduce experiments in "Differentiable Weighted Finite-State Transducers"
MIT License
80 stars 7 forks source link

how to load standardFST input ? #12

Closed aheba closed 3 years ago

aheba commented 3 years ago

Hello @awni , I'm wondering if GTN support standard FSA format:

  0 1 10 0.1
  0 2 20 0.2
  1 2 30 0.3
  1 3 -1 0.4
  2 3 -1 0.5
  3
awni commented 3 years ago

We don't currently support this in GTN as the GTN WFST has slightly different constraints than the graphs of OpenFST. You check out our format, it is not too different and should be an easy conversion.

Also if this is something you think would be useful to have in the GTN core library, please file a a feature request.