private void WriteDecision(User user, Label score)
        {
            string decision = "no";
            if (score == Label.Pos)
                decision = "yes";

            writer.WriteLine(string.Join("\t", user.Name, "*", decision, user.CommunityId));
        }
        private void WriteScore(User user, Label score)
        {
            int rating = 3;
            if (score == Label.Pos)
                rating = 5;
            else if (score == Label.Neg)
                rating = 1;

            writer.WriteLine(string.Join("\t", user.Name, rating, "*", user.CommunityId));
        }
Beispiel #3
0
 public void AddUser(User user)
 {
     user.CommunityId = _id;
     _users.Add(user);
 }