hi,
if condition is not executing here is my code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace porter_s_algo
{
class Program
{
static void Main(string[] args)
{ string builder="";
StreamReader read = new StreamReader(@"C:\Users\Romesha\documents\visual studio 2013\Projects\porter's algo\porter's algo\Properties\TextFile1.txt");
string save;
while ((save = read.ReadLine()) != null)
{
Console.WriteLine(@"--------THIS IS A ORIGINAL CORPUS--------"+"\n"+"{0}",save);
builder += save.Replace("tional", "te").Replace("tive", "te").Replace("est", "").Replace("ion", "e").Replace("ed", "");
}
if ((builder == "a") || (builder == "i") || (builder == "e") || (builder == "o") || (builder == "u"))
builder += builder.Replace("ing", "");
Console.WriteLine("--------CORPUS AFTER STEMMING--------- "+"\n"+"{0}",builder);
Console.ReadLine();
}
}
}

Catcher WongRank #286 · 8.8K reputationPosted Feb 18, 2017, 4:33 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 18, 2017, 4:38 PM EST
romasha ali98 reputationPosted Feb 19, 2017, 7:44 AM EST
Tapan PatelRank #614 · 3.9K reputationPosted Feb 19, 2017, 10:19 AM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 19, 2017, 5:15 PM EST
Bryian TanRank #396 · 6.3K reputationPosted Feb 19, 2017, 1:08 PM EST
Rafnas T PRank #280 · 8.8K reputationPosted Feb 19, 2017, 5:36 PM EST