Example #1
0
        protected override void ComputeOpenTags()
        {
            OpenTags = new int[openTagArray.Length];

            TagSet tagSet = TaggedData.PosTagSet;

            for (int i = 0; i < OpenTags.Length; i++)
            {
                try
                {
                    OpenTags[i] = tagSet.GetTagId(openTagArray[i]);
                }
                catch (TagNameException)
                {
                    Console.WriteLine($"Open tag not in tag set: {openTagArray[i]}");

                    Environment.Exit(1);
                }
            }
        }
Example #2
0
        public TaggedData(string language)
        {
            Language = language;

            try
            {
                PosTagSet = new TagSet();

                NeTagSet = new TagSet();

                NeTagSet.AddTag("O");

                NeTagSet.AddTag("B");

                NeTagSet.AddTag("I");

                NeTypeTagSet = new TagSet();
            }
            catch (TagNameException)
            {
                Debug.Assert(false);
            }
        }