Пример #1
0
        public BookCollection(List <string> ids)
        {
            this.ids         = ids;
            sentences        = new List <SentenceExample>();
            trainingExamples = new List <SentenceExample>();
            trainingLabels   = new List <int>();

            id = IdUtil.CreateBookCollectionName(ids);
        }
Пример #2
0
 public void CreateBookCollectionNameTest()
 {
     Assert.Equal("cat_dog", IdUtil.CreateBookCollectionName(new List <string>(new string[] { "cat", "dog" })));
 }
Пример #3
0
 public void CreateBookCollectionNameEmptyTest()
 {
     Assert.Equal("", IdUtil.CreateBookCollectionName(new List <string>()));
 }
Пример #4
0
 public void CreateBookCollectionNameNullTest()
 {
     Assert.Equal("", IdUtil.CreateBookCollectionName(null));
 }