/// <summary>
        /// Constructor
        /// </summary>
        public SemLinkEditorForm()
        {
            InitializeComponent();

            // hard-code propbank for now
            string root = Directory.GetDirectoryRoot(".");

            _propBank = new PropBankEngine(root + @"NLP\Resources\PennTreeBank_3\PARSED\MRG\WSJ",
                                           root + @"NLP\Resources\PropBank\prop.txt",
                                           root + @"NLP\Resources\PropBank\frames",
                                           root + @"NLP\Resources\Indexes\propbank_index");

            _frameNet = new FrameNetEngine(root + @"NLP\Resources\FrameNet1.5", FrameNetEngine.Version.FrameNet_1_5);

            RoleSet.IncludeArgumentsInToString = false;

            // add propbank verbs
            foreach (string verb in _propBank.AllVerbs)
            {
                propBankVerb.Items.Add(verb);
            }

            // add framenet frames
            foreach (LAIR.ResourceAPIs.FrameNet.Frame frame in _frameNet.Frames)
            {
                frames.Items.Add(frame);
            }

            folderBrowser.SelectedPath = root + @"NLP\Resources";

            semLinkDirectory.Text = Settings.Default.SemLinkDirectory;
            verbNetDirectory.Text = Settings.Default.VerbNetDirectory;
        }
Beispiel #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="propBank">PropBank to analyze</param>
        /// <param name="verbNet">VerbNet to analyze</param>
        /// <param name="frameNet">FrameNet to analyze</param>
        /// <param name="semLink">SemLink to analyze</param>
        public IssueForm(PropBankEngine propBank, VerbNetEngine verbNet, FrameNetEngine frameNet, SemLinkEngine semLink)
        {
            InitializeComponent();

            _propBank = propBank;
            _verbNet  = verbNet;
            _frameNet = frameNet;
            _semLink  = semLink;
        }
Beispiel #3
0
        private void loadPbBtn_Click(object sender, EventArgs e)
        {
            string root = Directory.GetDirectoryRoot(".");

            _propBankEngine = new PropBankEngine(root + @"NLP\Resources\PennTreeBank_3\PARSED\MRG\WSJ",
                                                 root + @"NLP\Resources\PropBank\prop.txt",
                                                 root + @"NLP\Resources\PropBank\frames",
                                                 root + @"NLP\Resources\Indexes\propbank_index");
            // populate verb box
            verbCombo.Items.AddRange(new List <string>(_propBankEngine.AllVerbs).ToArray());

            propBankGroupBox.Enabled = true;
            loadPbBtn.Enabled        = false;
        }