diff --git a/TextRank/POSTagger/SentencePOSTagger.cs b/TextRank/POSTagger/SentencePOSTagger.cs index 9023a0e..604fa9a 100644 --- a/TextRank/POSTagger/SentencePOSTagger.cs +++ b/TextRank/POSTagger/SentencePOSTagger.cs @@ -9,7 +9,7 @@ namespace TextRank.POSTagger { internal static class SentencePOSTagger { - private static string _modelPath = AppDomain.CurrentDomain.BaseDirectory + "/Resources/Models/"; + private static string _modelPath = AppDomain.CurrentDomain.BaseDirectory + "/../../Resources/Models/"; private static EnglishMaximumEntropySentenceDetector _sentence_tokenizer = new EnglishMaximumEntropySentenceDetector(_modelPath + "/EnglishSD.nbin"); public static string[] GetTaggedSentences(string paragraph) diff --git a/TextRank/POSTagger/WordPOSTagger.cs b/TextRank/POSTagger/WordPOSTagger.cs index c93f4b9..c16994f 100644 --- a/TextRank/POSTagger/WordPOSTagger.cs +++ b/TextRank/POSTagger/WordPOSTagger.cs @@ -11,7 +11,7 @@ internal static class WordPOSTagger { private static readonly EnglishRuleBasedTokenizer Tokenizer = new EnglishRuleBasedTokenizer(false); - private static readonly string ModelPath = AppDomain.CurrentDomain.BaseDirectory + "/Resources/Models/"; + private static readonly string ModelPath = AppDomain.CurrentDomain.BaseDirectory + "/../../Resources/Models/"; private static readonly IList RequiredTags = new List { "NN", "JJ", "NNP", "NNS", "NNPS" };