private void btnGender_Click(object sender, EventArgs e) { var output = new StringBuilder(); string[] sentences = SplitSentences(_txtIn.Text); foreach (string sentence in sentences) { string[] tokens = TokenizeSentence(sentence); string[] tags = PosTagTokens(tokens); string posTaggedSentence = string.Empty; for (int currentTag = 0; currentTag < tags.Length; currentTag++) { posTaggedSentence += tokens[currentTag] + @"/" + tags[currentTag] + " "; } output.Append(posTaggedSentence); output.Append("\r\n"); output.Append(GenderModel.GenderMain(_modelPath + "coref\\gen", posTaggedSentence)); output.Append("\r\n\r\n"); } _txtOut.Text = output.ToString(); }