Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add super final state #85

Merged
merged 5 commits into from
Feb 11, 2020
Merged

Conversation

hdlj
Copy link
Collaborator

@hdlj hdlj commented Feb 11, 2020

  • Update Changelog
  • Implementation
  • Unit tests

@hdlj hdlj requested a review from Garvys February 11, 2020 11:34
let weight = unsafe {
let w = ifst.final_weight_unchecked_mut(final_state).cloned().unwrap(); // Checked
ifst.delete_final_weight_unchecked(final_state);
w
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok this looks goods. This makes me think I should add a method to the MutableFst API to take a final weight out of an fst by letting None instead. Because here the copy shouldn't be needed

@Garvys Garvys merged commit 0975fcd into master Feb 11, 2020
@Garvys Garvys deleted the task/final-state-iterator-with-super-final branch February 11, 2020 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants