private void GenerateOutputButton_Click(object sender, EventArgs e)
        {
            dgv.Rows.Clear();
            dgv.Refresh();
            this.Visible = false;
            PWF2         = new PleaseWaitForm2();
            PWF2.Show();

            string input = textBox1.Text.ToString();

            if (input != "")
            {
                InsertInTable(input);
            }


            PWF2.Close();
            this.Visible = true;
        }
        private void WordNetForm_Load(object sender, EventArgs e)
        {
            this.Visible = false;
            PWF2         = new PleaseWaitForm2();
            PWF2.Show();

            //--------------------------------Word Net Loading
            wordNet = new WordNetEngine();

            wordNet.LoadFromDirectory(directory);

            PWF2.Close();
            this.Visible = true;
            //--------------------------------------------------------------
            textBox1.Text = "";
            //------------------------------------------
            dgv.AutoGenerateColumns       = false;
            dgv.RowHeadersVisible         = false;
            dgv.MultiSelect               = false;
            dgv.SelectionMode             = DataGridViewSelectionMode.FullRowSelect;
            dgv.AutoSizeRowsMode          = DataGridViewAutoSizeRowsMode.AllCells;
            dgv.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
            //----------------------------------------------------------------------------
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Synonyms",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 100
            });
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Parts of Speech",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 50,

                //FillWeight = 25
            });

            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Gloss",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 300
                               // Width = 100,
            });
            //---------------------------------------------------1
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Also See",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 2000
                               //FillWeight = 25
            });
            //---------------------------------------------------2
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Antonym",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 60

                               //FillWeight = 25
            });
            //---------------------------------------------------3
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Attribute",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 200
                               //FillWeight = 25
            });
            //---------------------------------------------------4
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Cause",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 200
                               //FillWeight = 25
            });
            //---------------------------------------------------5
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Derivationally Related",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 200
                               //FillWeight = 25
            });
            //---------------------------------------------------6
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Derived from Adjective",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 200
                               //FillWeight = 25
            });
            //---------------------------------------------------7
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Entailment",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 100
                               //FillWeight = 25
            });
            //---------------------------------------------------8
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Hypernym",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 700
                               //FillWeight = 25
            });
            //---------------------------------------------------9
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Hyponym",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 1600
                               //FillWeight = 25
            });
            //---------------------------------------------------10
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Instance Hypernym",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 300
                               //FillWeight = 25
            });
            //---------------------------------------------------11
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Instance Hyponym",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 3000
                               //FillWeight = 25
            });
            //---------------------------------------------------12
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Member Holonym",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 300
                               //FillWeight = 25
            });
            //---------------------------------------------------13
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Member Meronym",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 300
                               //FillWeight = 25
            });
            //---------------------------------------------------14
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Part Holonym",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 300
                               //FillWeight = 25
            });
            //---------------------------------------------------15
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Participle of Verb",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 200
                               //FillWeight = 25
            });
            //---------------------------------------------------16
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Part Meronym",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 1000
                               //FillWeight = 25
            });
            //---------------------------------------------------17
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Part Ainym",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 100
                               //FillWeight = 25
            });
            //---------------------------------------------------18
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Region Domain",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 500
                               //FillWeight = 25
            });
            //---------------------------------------------------19
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Region Domain Member",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 700
                               //FillWeight = 25
            });
            //---------------------------------------------------20
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Similar To",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 600
                               //FillWeight = 25
            });
            //---------------------------------------------------21
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Substance Holonym",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 200
                               //FillWeight = 25
            });
            //---------------------------------------------------22
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "substance Meronym",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 200
                               //FillWeight = 25
            });
            //---------------------------------------------------23
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Topic Domain",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 200
                               //FillWeight = 25
            });
            //---------------------------------------------------24
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Topic Domain Member",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 300
                               //FillWeight = 25
            });
            //---------------------------------------------------25
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Usage Domain",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 300
                               //FillWeight = 25
            });
            //---------------------------------------------------26
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Usage Domain Member",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 200
                               //FillWeight = 25
            });
            //---------------------------------------------------27
            dgv.Columns.Add(new DataGridViewTextBoxColumn()
            {
                HeaderText   = "Verb Group",
                ReadOnly     = true,
                AutoSizeMode = DataGridViewAutoSizeColumnMode.None,
                Width        = 1000
                               //FillWeight = 25
            });
            //----------------------------------------------------------------------
        }