You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/01/25 03:44:29 UTC

[45/50] [abbrv] lucenenet git commit: Lucene.Net.Classification.Utils.DatasetSplitter: suppressed obsolete warnings about LUCENE_CURRENT

Lucene.Net.Classification.Utils.DatasetSplitter: suppressed obsolete warnings about LUCENE_CURRENT


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/adf7c159
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/adf7c159
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/adf7c159

Branch: refs/heads/api-work
Commit: adf7c1597153257d60b88cd0e3dedeb86e5dbd21
Parents: aabeb67
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Wed Jan 25 07:40:01 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Wed Jan 25 09:34:49 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Classification/Utils/DatasetSplitter.cs | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/adf7c159/src/Lucene.Net.Classification/Utils/DatasetSplitter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Classification/Utils/DatasetSplitter.cs b/src/Lucene.Net.Classification/Utils/DatasetSplitter.cs
index f7c2f35..0ee0993 100644
--- a/src/Lucene.Net.Classification/Utils/DatasetSplitter.cs
+++ b/src/Lucene.Net.Classification/Utils/DatasetSplitter.cs
@@ -59,10 +59,12 @@ namespace Lucene.Net.Classification.Utils
          */
         public void Split(AtomicReader originalIndex, Directory trainingIndex, Directory testIndex, Directory crossValidationIndex, Analyzer analyzer, params string[] fieldNames)
         {
+#pragma warning disable 612, 618
             // create IWs for train / test / cv IDXs
             IndexWriter testWriter = new IndexWriter(testIndex, new IndexWriterConfig(Util.LuceneVersion.LUCENE_CURRENT, analyzer));
             IndexWriter cvWriter = new IndexWriter(crossValidationIndex, new IndexWriterConfig(Util.LuceneVersion.LUCENE_CURRENT, analyzer));
             IndexWriter trainingWriter = new IndexWriter(trainingIndex, new IndexWriterConfig(Util.LuceneVersion.LUCENE_CURRENT, analyzer));
+#pragma warning restore 612, 618
 
             try
             {