static List <Song> GetPreparedTrainingData() { SongsReader songsReader = new SongsReader($"{ResourcesRoot}/top10s.csv", ','); songsReader.ReadSongs(); List <Song> songs = songsReader.Songs; // Console.WriteLine("Read songs:"); // ConsoleHelper.ShowReadSongs(songs); OriginalSongsAnalyzer analyzer = new OriginalSongsAnalyzer(songs); analyzer.Analyze(); // ConsoleHelper.ShowAnalyzerResults(analyzer); SongsNormalizer normalizer = new SongsNormalizer(songs, true); normalizer.Normalize(); songs = normalizer.NormalizedSongs; // Console.WriteLine("Normalized songs:"); // ConsoleHelper.ShowReadSongs(songs); return(songs); }
static List <Song> GetAnalyzingSongs() { SongsReader analyzingSongsReader = new SongsReader($"{ResourcesRoot}/test_data.csv", ','); analyzingSongsReader.ReadSongs(); List <Song> analyzingSongs = analyzingSongsReader.Songs; // Console.WriteLine("Read songs:"); // ConsoleHelper.ShowReadSongs(analyzingSongs); SongsNormalizer normalizer = new SongsNormalizer(analyzingSongs, false); normalizer.Normalize(); analyzingSongs = normalizer.NormalizedSongs; // Console.WriteLine("Normalized songs:"); // ConsoleHelper.ShowReadSongs(analyzingSongs); return(analyzingSongs); }