lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [5/9] lucenenet git commit: Lucene.Net.Analysis.Gl refactor: member accessibility and documentation comments
Date Fri, 03 Feb 2017 09:33:16 GMT
Lucene.Net.Analysis.Gl refactor: member accessibility and documentation comments


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

Branch: refs/heads/api-work
Commit: ed446d239b9577e25e865bf73ccc105652f37745
Parents: 4c9c2bc
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Feb 3 15:27:59 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Fri Feb 3 15:27:59 2017 +0700

----------------------------------------------------------------------
 .../Analysis/Gl/GalicianAnalyzer.cs                       | 10 +++++-----
 .../Analysis/Gl/GalicianMinimalStemFilter.cs              |  6 +++---
 .../Analysis/Gl/GalicianMinimalStemFilterFactory.cs       |  3 +--
 .../Analysis/Gl/GalicianMinimalStemmer.cs                 |  7 ++-----
 .../Analysis/Gl/GalicianStemFilter.cs                     |  2 +-
 .../Analysis/Gl/GalicianStemFilterFactory.cs              |  3 +--
 .../Analysis/Gl/GalicianStemmer.cs                        |  4 ++--
 7 files changed, 15 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ed446d23/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianAnalyzer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianAnalyzer.cs b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianAnalyzer.cs
index 9b471bc..0e38cfa 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianAnalyzer.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianAnalyzer.cs
@@ -49,7 +49,7 @@ namespace Lucene.Net.Analysis.Gl
         }
 
         /// <summary>
-        /// Atomically loads the DEFAULT_STOP_SET in a lazy fashion once the outer class

+        /// Atomically loads the <see cref="DEFAULT_STOP_SET"/> in a lazy fashion once
the outer class 
         /// accesses the static final set the first time.;
         /// </summary>
         private class DefaultSetHolder
@@ -77,7 +77,7 @@ namespace Lucene.Net.Analysis.Gl
         }
 
         /// <summary>
-        /// Builds an analyzer with the default stop words: <see cref="#DEFAULT_STOPWORD_FILE"/>.
+        /// Builds an analyzer with the default stop words: <see cref="DEFAULT_STOPWORD_FILE"/>.
         /// </summary>
         public GalicianAnalyzer(LuceneVersion matchVersion)
               : this(matchVersion, DefaultSetHolder.DEFAULT_STOP_SET)
@@ -111,13 +111,13 @@ namespace Lucene.Net.Analysis.Gl
         /// <summary>
         /// Creates a
         /// <see cref="Analyzer.TokenStreamComponents"/>
-        /// which tokenizes all the text in the provided <see cref="Reader"/>.
+        /// which tokenizes all the text in the provided <see cref="TextReader"/>.
         /// </summary>
         /// <returns> A
         ///         <see cref="Analyzer.TokenStreamComponents"/>
         ///         built from an <see cref="StandardTokenizer"/> filtered with
-        ///         <see cref="StandardFilter"/>, <see cref="LowerCaseFilter"/>,
<see cref="StopFilter"/>
-        ///         , <see cref="SetKeywordMarkerFilter"/> if a stem exclusion set
is
+        ///         <see cref="StandardFilter"/>, <see cref="LowerCaseFilter"/>,
<see cref="StopFilter"/>,
+        ///         <see cref="SetKeywordMarkerFilter"/> if a stem exclusion set is
         ///         provided and <see cref="GalicianStemFilter"/>. </returns>
         protected override TokenStreamComponents CreateComponents(string fieldName, TextReader
reader)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ed446d23/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemFilter.cs b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemFilter.cs
index 2b67926..bf21fb1 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemFilter.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemFilter.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.Analysis.Gl
     /// Galician words.
     /// <para>
     /// To prevent terms from being stemmed use an instance of
-    /// <see cref="SetKeywordMarkerFilter"/> or a custom <see cref="TokenFilter"/>
that sets
+    /// <see cref="Miscellaneous.SetKeywordMarkerFilter"/> or a custom <see cref="TokenFilter"/>
that sets
     /// the <see cref="KeywordAttribute"/> before this <see cref="TokenStream"/>.
     /// </para>
     /// </summary>
@@ -35,7 +35,7 @@ namespace Lucene.Net.Analysis.Gl
         private readonly IKeywordAttribute keywordAttr;
 
         public GalicianMinimalStemFilter(TokenStream input)
-              : base(input)
+            : base(input)
         {
             termAtt = AddAttribute<ICharTermAttribute>();
             keywordAttr = AddAttribute<IKeywordAttribute>();
@@ -47,7 +47,7 @@ namespace Lucene.Net.Analysis.Gl
             {
                 if (!keywordAttr.IsKeyword)
                 {
-                    int newlen = stemmer.stem(termAtt.Buffer, termAtt.Length);
+                    int newlen = stemmer.Stem(termAtt.Buffer, termAtt.Length);
                     termAtt.Length = newlen;
                 }
                 return true;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ed446d23/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemFilterFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemFilterFactory.cs
b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemFilterFactory.cs
index 3fb2221..484f582 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemFilterFactory.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemFilterFactory.cs
@@ -33,9 +33,8 @@ namespace Lucene.Net.Analysis.Gl
     /// </summary>
     public class GalicianMinimalStemFilterFactory : TokenFilterFactory
     {
-
         /// <summary>
-        /// Creates a new GalicianMinimalStemFilterFactory </summary>
+        /// Creates a new <see cref="GalicianMinimalStemFilterFactory"/> </summary>
         public GalicianMinimalStemFilterFactory(IDictionary<string, string> args) :
base(args)
         {
             if (args.Count > 0)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ed446d23/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemmer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemmer.cs b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemmer.cs
index 9a965c9..fa8a3e4 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemmer.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianMinimalStemmer.cs
@@ -19,8 +19,6 @@ namespace Lucene.Net.Analysis.Gl
 	 * limitations under the License.
 	 */
 
-    //using RSLPStemmerBase = org.apache.lucene.analysis.pt.RSLPStemmerBase;
-
     /// <summary>
     /// Minimal Stemmer for Galician
     /// <para>
@@ -29,13 +27,12 @@ namespace Lucene.Net.Analysis.Gl
     /// "Regras do lematizador para o galego"
     /// </para>
     /// </summary>
-    /// <seealso cref= RSLPStemmerBase </seealso>
+    /// <seealso cref="RSLPStemmerBase"/>
     public class GalicianMinimalStemmer : RSLPStemmerBase
     {
-
         private static readonly Step pluralStep = Parse(typeof(GalicianMinimalStemmer), "galician.rslp")["Plural"];
 
-        public virtual int stem(char[] s, int len)
+        public virtual int Stem(char[] s, int len)
         {
             return pluralStep.Apply(s, len);
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ed446d23/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemFilter.cs b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemFilter.cs
index 3db897e..d6c84d2 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemFilter.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemFilter.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.Analysis.Gl
     /// Galician words.
     /// <para>
     /// To prevent terms from being stemmed use an instance of
-    /// <see cref="SetKeywordMarkerFilter"/> or a custom <see cref="TokenFilter"/>
that sets
+    /// <see cref="Miscellaneous.SetKeywordMarkerFilter"/> or a custom <see cref="TokenFilter"/>
that sets
     /// the <see cref="KeywordAttribute"/> before this <see cref="TokenStream"/>.
     /// </para>
     /// </summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ed446d23/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemFilterFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemFilterFactory.cs b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemFilterFactory.cs
index 2c47784..f939ca2 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemFilterFactory.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemFilterFactory.cs
@@ -33,9 +33,8 @@ namespace Lucene.Net.Analysis.Gl
     /// </summary>
     public class GalicianStemFilterFactory : TokenFilterFactory
     {
-
         /// <summary>
-        /// Creates a new GalicianStemFilterFactory </summary>
+        /// Creates a new <see cref="GalicianStemFilterFactory"/> </summary>
         public GalicianStemFilterFactory(IDictionary<string, string> args)
               : base(args)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ed446d23/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemmer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemmer.cs b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemmer.cs
index 9e7af33..f8e9550 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemmer.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Gl/GalicianStemmer.cs
@@ -24,8 +24,8 @@ namespace Lucene.Net.Analysis.Gl
     /// <summary>
     /// Galician stemmer implementing "Regras do lematizador para o galego".
     /// </summary>
-    /// <seealso cref= RSLPStemmerBase </seealso>
-    /// <seealso cref= <a href="http://bvg.udc.es/recursos_lingua/stemming.jsp">Description
of rules</a> </seealso>
+    /// <seealso cref="RSLPStemmerBase"/>
+    /// <a href="http://bvg.udc.es/recursos_lingua/stemming.jsp">Description of rules</a>
     public class GalicianStemmer : RSLPStemmerBase
     {
         private static readonly Step plural, unification, adverb, augmentative, noun, verb,
vowel;


Mime
View raw message