From c1f3afadaf76e2865f20b1516e43c44f80b93776 Mon Sep 17 00:00:00 2001 From: KevinLamb Date: Thu, 21 Jun 2018 20:31:44 -0400 Subject: [PATCH 1/2] Edit output path to root instead of bin folder --- TextSummarize/TextSummarize.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TextSummarize/TextSummarize.csproj b/TextSummarize/TextSummarize.csproj index f92853d..875e5f7 100644 --- a/TextSummarize/TextSummarize.csproj +++ b/TextSummarize/TextSummarize.csproj @@ -17,7 +17,7 @@ true full false - bin\Debug\ + .\ DEBUG;TRACE prompt 4 From baa4817fd5d8f64c14973b743b9b4f6154ca9ff8 Mon Sep 17 00:00:00 2001 From: KevinLamb Date: Sun, 24 Jun 2018 14:13:08 -0400 Subject: [PATCH 2/2] Changing back to default output path and changing model paths --- TextRank/POSTagger/SentencePOSTagger.cs | 2 +- TextRank/POSTagger/WordPOSTagger.cs | 2 +- TextSummarize/TextSummarize.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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" }; diff --git a/TextSummarize/TextSummarize.csproj b/TextSummarize/TextSummarize.csproj index 875e5f7..f92853d 100644 --- a/TextSummarize/TextSummarize.csproj +++ b/TextSummarize/TextSummarize.csproj @@ -17,7 +17,7 @@ true full false - .\ + bin\Debug\ DEBUG;TRACE prompt 4