Esempio n. 1
0
    protected void StemButton_Click(object sender, EventArgs e)
    {
        ProjectPart2Service.ServiceClient service = new ProjectPart2Service.ServiceClient();
        string input = StemText.Text;

        input          = service.Stemming(input);
        StemLabel.Text = input;
    }
Esempio n. 2
0
    protected void NewsButton_Click(object sender, EventArgs e)
    {
        ProjectPart2Service.ServiceClient service = new ProjectPart2Service.ServiceClient();
        string input = NewsText.Text;

        char delimiter = ' ';

        string[] output = input.Split(delimiter);
        output = service.NewsFocus(output);
        for (int k = 0; k < output.Length; k++)
        {
            NewsLabel.Text += "<br><br>" + output[k];
        }
    }