Added t2s computation step in grammar extraction.