public void TestIyarSeerVendalai() { var lines = new []{ "அன்பும் அறிவும்", "ஆடலும் பாடலும்" }; var prosodyParser = new ProsodyParser(); foreach (var line in lines) { var metricLinkage = prosodyParser.GetMetricAndLinkage(line); foreach (Dictionary<string, string> wordBond in metricLinkage.WordBond) { Console.WriteLine($"{wordBond["word1"]} - {wordBond["word1"]}"); Console.WriteLine($"{wordBond["class1"]} - {wordBond["class1"]}"); Assert.Equal(wordBond["bond"], "இயற்சீர் வெண்டளை"); } } }
public void TestVenSeerVendalai() { var lines = new[] { "அழகான தோட்டம்", "தோட்டத்தில் காய்கள்" }; var prosodyParser = new ProsodyParser(); foreach (var line in lines) { var metricLinkage = prosodyParser.GetMetricAndLinkage(line); foreach (Dictionary<string, string> wordBond in metricLinkage.WordBond) { Console.WriteLine($"{wordBond["word1"]} - {wordBond["word1"]}"); Console.WriteLine($"{wordBond["class1"]} - {wordBond["class1"]}"); Assert.Equal(wordBond["bond"], "வெண்சீர் வெண்டளை"); } } }
public void TestNerasai() { var word = "ராஜா"; var prosodyParser = new ProsodyParser(word); var metricLinkage = prosodyParser.GetMetricAndLinkage(); foreach (var lineList in metricLinkage.ParseTree) { foreach (var wordList in lineList.Value) { foreach (var seerValue in wordList.Value) { foreach (var asaiValue in seerValue.Value) { Console.WriteLine($"{asaiValue.Key} => {asaiValue.Value}"); } } } } }