A Method for Automatic Acquisition of the State Diagram of a Finite State Grammar from a Text Corpus