ftyers / attjs

GNU Affero General Public License v3.0
4 stars 1 forks source link

support ATT (#3) and redo stepping code #6

Closed mr-martian closed 2 years ago

mr-martian commented 2 years ago

Now you can pass an ATT file directly to the constructor and it will parse it for you.

To implement undo you just need to store the ctx objects that step() returns and for weights you just need to change the type signature from (in C++ terms) map<State, vector<string>> to map<State, vector<pair<string, double>>> (which affects the concatenation logic in epsilon_closure() and _product() but not really anything else).