MSTParser.DependencyPipe.CloseAlphabets C# (CSharp) Method

CloseAlphabets() public method

public CloseAlphabets ( ) : void
return void
        public void CloseAlphabets()
        {
            DataAlphabet.StopGrowth();
            TypeAlphabet.StopGrowth();

            Types = new string[TypeAlphabet.Count];
            string[] keys = TypeAlphabet.ToArray();
            Array.Sort(keys);

            for (int i = 0; i < keys.Length; i++)
            {
                int indx = TypeAlphabet.LookupIndex(keys[i]);
                Types[indx] = (string) keys[i];
            }

            KBestParseForest.RootType = TypeAlphabet.LookupIndex("<root-Type>");
        }