public TestForm() { InitializeComponent(); // create wordnet engine (use disk-based retrieval by default) string root = Directory.GetDirectoryRoot("."); _wordNetEngine = new WordNetEngine(@"C:\Users\danie\Documents\Visual Studio 2015\Projects\Anti-Plagiarism\References\WordNetAPI-master\WordNetAPI-master\resources", false); if (!_wordNetEngine.InMemory) test.Text += " (will take a while)"; // populate POS list foreach (WordNetEngine.POS p in Enum.GetValues(typeof(WordNetEngine.POS))) if (p != WordNetEngine.POS.None) pos.Items.Add(p); pos.SelectedIndex = 0; // allow scrolling of synset list synSets.HorizontalScrollbar = true; _semSimSs1 = _semSimSs2 = null; _origSsLbl = ss1.Text; _semanticSimilarityModel = new WordNetSimilarityModel(_wordNetEngine); }
public TestForm() { InitializeComponent(); // create wordnet engine (use disk-based retrieval by default) string root = Directory.GetDirectoryRoot("."); //_wordNetEngine = new WordNetEngine(root + @"\dev\wordnetapi\resources\", false); _wordNetEngine = new WordNetEngine(@"..\..\..\..\resources", false); if (!_wordNetEngine.InMemory) test.Text += " (will take a while)"; // populate POS list foreach (WordNetEngine.POS p in Enum.GetValues(typeof(WordNetEngine.POS))) if (p != WordNetEngine.POS.None) pos.Items.Add(p); pos.SelectedIndex = 0; // allow scrolling of synset list synSets.HorizontalScrollbar = true; _semSimSs1 = _semSimSs2 = null; _origSsLbl = ss1.Text; _semanticSimilarityModel = new WordNetSimilarityModel(_wordNetEngine); }
public Classifier() { wordNetEngine = new WordNetEngine(@"..\resources", false); semanticSimilarityModel = new WordNetSimilarityModel(wordNetEngine); //CategoriesNew = new Dictionary<string, Pair<Dictionary<SynSet, int>, int>>(); CategoriesNew = new List<Category>(); }
public StrategySynonym(CGGraph graph) { this.graph = graph; _wordNetEngine = new WordNet.WordNetEngine(@"D:\Tesis2016\WordnetAPI\resources\", false); _semanticSimilarityModel = new LAIR.ResourceAPIs.WordNet.WordNetSimilarityModel(_wordNetEngine); }