Parsing videos of actions with segmental grammars