У меня есть текстовый файл с:
0,ke-2,0.0986089045676918
0,putar,0.141656526869241
1,film,0.110677581313152
1,aveng,0.12035192077391
Я хочу разобрать файл txt в словарь со структурой, подобной этой:

private Dictionary<int, Dictionary<string, double>> openNormalization()
{
var temp = new Dictionary<int, Dictionary<string, double>>();
var file = File.ReadLines("normalization.txt").Cast<string>();
foreach (string f in file)
{
var doc = new Dictionary<string, double>();
string fwd = "0";
string[] entry = f.Split(',');
if (entry[0] == fwd)
{
doc.Add(entry[1], Convert.ToDouble(entry[2]));
fwd = entry[0];
}
else
{
temp.Add(int.Parse(fwd), doc);
doc = new Dictionary<string, double>();
doc.Add(entry[1], Convert.ToDouble(entry[2]));
fwd = entry[0];
}
return temp;
}

как я могу это исправить?