Skip to content

Stopwords remover xml documentation #3413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Ivanidzo4ka
Copy link
Contributor

towards #3204

@Ivanidzo4ka Ivanidzo4ka added the documentation Related to documentation of ML.NET label Apr 18, 2019
@codecov
Copy link

codecov bot commented Apr 18, 2019

Codecov Report

Merging #3413 into master will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3413      +/-   ##
==========================================
+ Coverage   72.69%   72.73%   +0.03%     
==========================================
  Files         807      807              
  Lines      145171   145206      +35     
  Branches    16225    16230       +5     
==========================================
+ Hits       105536   105612      +76     
+ Misses      35220    35176      -44     
- Partials     4415     4418       +3
Flag Coverage Δ
#Debug 72.73% <ø> (+0.03%) ⬆️
#production 68.27% <ø> (+0.04%) ⬆️
#test 88.98% <ø> (ø) ⬆️
Impacted Files Coverage Δ
src/Microsoft.ML.Transforms/Text/TextCatalog.cs 41.66% <ø> (ø) ⬆️
...ML.Transforms/Text/StopWordsRemovingTransformer.cs 86.1% <ø> (ø) ⬆️
src/Microsoft.ML.Data/Transforms/KeyToValue.cs 79.16% <0%> (-0.65%) ⬇️
...ML.Transforms/MutualInformationFeatureSelection.cs 78.58% <0%> (-0.33%) ⬇️
...soft.ML.Tests/Transformers/CategoricalHashTests.cs 100% <0%> (ø) ⬆️
src/Microsoft.ML.Transforms/NormalizerCatalog.cs 84.78% <0%> (ø) ⬆️
...osoft.ML.Tests/Transformers/TextFeaturizerTests.cs 99.58% <0%> (ø) ⬆️
...soft.ML.Transforms/Text/NgramHashingTransformer.cs 88.79% <0%> (+0.01%) ⬆️
...soft.ML.TestFramework/DataPipe/TestDataPipeBase.cs 73.73% <0%> (+0.02%) ⬆️
... and 5 more

/// | Output column data type | Vector of unknown size of [Text]<xref:System.ReadOnlyMemory{System.Char}> |
///
/// The resulting <xref:Microsoft.ML.Transforms.Text.StopWordsRemovingTransformer/> creates a new column, named as specified in the output column name parameters, and
/// fills it with vector of strings similar to vector of strings in input column but removing all, predefined for certain language, strings from it.
Copy link
Contributor Author

@Ivanidzo4ka Ivanidzo4ka Apr 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strings [](start = 32, length = 7)

replace strings with texts? #Resolved

/// | | |
/// | -- | -- |
/// | Does this estimator need to look at the data to train its parameters? | No |
/// | Input column data type | Vector of [Text]<xref:System.ReadOnlyMemory{System.Char}> |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Text]xref:System.ReadOnlyMemory{System.Char} [](start = 45, length = 47)

nice. let's check how this renders when the preview site is refreshed tomorrow

/// | | |
/// | -- | -- |
/// | Does this estimator need to look at the data to train its parameters? | No |
/// | Input column data type | Vector of [Text]<xref:System.ReadOnlyMemory{System.Char}> |
Copy link

@shmoradims shmoradims Apr 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vector [](start = 35, length = 6)

should this be known-sized? #ByDesign

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it can be either known-sized or unknown size.
output would always be unknown size


In reply to: 276871092 [](ancestors = 276871092)

/// Removes stop words from incoming token streams in <paramref name="inputColumnName"/>
/// and outputs the token streams without stopwords as <paramref name="outputColumnName"/>.
/// Create a <see cref="CustomStopWordsRemovingEstimator"/>, which copies the data from the column specified in <paramref name="inputColumnName"/>
/// to a new column: <paramref name="outputColumnName"/> and removes predifined set of text specific for <paramref name="language"/> from it.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specific for [](start = 100, length = 40)

for later: we should that these language-specific lists to docs.

/// | -- | -- |
/// | Does this estimator need to look at the data to train its parameters? | No |
/// | Input column data type | Vector of [Text]<xref:System.ReadOnlyMemory{System.Char}> |
/// | Output column data type | Vector of unknown size of [Text]<xref:System.ReadOnlyMemory{System.Char}> |
Copy link

@shmoradims shmoradims Apr 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vector of unknown size of [](start = 36, length = 25)

how about "Unknown-sized vector of"? #Resolved

Copy link
Contributor

@natke natke Apr 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unspecified? #ByDesign

Copy link

@shmoradims shmoradims left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

/// | -- | -- |
/// | Does this estimator need to look at the data to train its parameters? | No |
/// | Input column data type | Vector of [Text]<xref:System.ReadOnlyMemory{System.Char}> |
/// | Output column data type | Unknown-sized vector of [Text]<xref:System.ReadOnlyMemory{System.Char}> |
Copy link
Contributor

@natke natke Apr 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unspecified? #Resolved

/// | -- | -- |
/// | Does this estimator need to look at the data to train its parameters? | No |
/// | Input column data type | Vector of [Text]<xref:System.ReadOnlyMemory{System.Char}> |
/// | Output column data type | Vector of unknown size of [Text]<xref:System.ReadOnlyMemory{System.Char}> |
Copy link
Contributor

@natke natke Apr 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unspecified? #ByDesign

/// | Output column data type | Vector of unknown size of [Text]<xref:System.ReadOnlyMemory{System.Char}> |
///
/// The resulting <xref:Microsoft.ML.Transforms.Text.CustomStopWordsRemovingTransformer/> creates a new column, named as specified in the output column name parameters, and
/// fills it with vector of texts similar to vector of texts in input column but removing all specified texts from it.
Copy link
Contributor

@natke natke Apr 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specified texts -> common words? #Resolved

Copy link
Contributor

@natke natke Apr 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vector of texts -> vector of words? #Resolved

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they not common, they provided by user. does that phrasing looks better?


In reply to: 276881001 [](ancestors = 276881001)

@Ivanidzo4ka Ivanidzo4ka requested a review from natke April 19, 2019 19:52
/// | Output column data type | Unknown-sized vector of [Text](<xref:Microsoft.ML.Data.TextDataViewType>) |
///
/// The resulting <xref:Microsoft.ML.Transforms.Text.CustomStopWordsRemovingTransformer/> creates a new column, named as specified in the output column name parameters, and
/// fills it with vector of texts similar to vector of words in input column but removing all provided by user words from it.
Copy link
Contributor

@natke natke Apr 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest: The resulting xref:Microsoft.ML.Transforms.Text.CustomStopWordsRemovingTransformer/ creates a new column, named as specified by the output column name parameter, and
fills it with a vector of words containing all of the words in the input column except those given by the stopwords parameter. #Resolved

/// The resulting <xref:Microsoft.ML.Transforms.Text.StopWordsRemovingTransformer/> creates a new column, named as specified in the output column name parameters, and
/// fills it with vector of words similar to vector of words in input column but removing all, predefined for certain language, texts from it.
/// All text comparison made by casting predefined text and text from input column to lower case using casing rules of invariant culture.
/// See the See Also section for links to examples of the usage.
Copy link
Contributor

@natke natke Apr 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest: The resulting xref:Microsoft.ML.Transforms.Text.StopWordsRemovingTransformer/ creates a new column, named as specified in the output column name parameter, and fills it with a vector of words containing all of the words in the input column **except the predefined list of stopwords for the specified language. #Resolved

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Small type: extra ** in there

@Ivanidzo4ka Ivanidzo4ka requested a review from natke April 19, 2019 21:15
/// The resulting <xref:Microsoft.ML.Transforms.Text.StopWordsRemovingTransformer/> creates a new column, named as specified in the output column name parameters, and
/// fills it with vector of words similar to vector of words in input column but removing all, predefined for certain language, texts from it.
/// All text comparison made by casting predefined text and text from input column to lower case using casing rules of invariant culture.
/// See the See Also section for links to examples of the usage.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Small type: extra ** in there

@shauheen shauheen merged commit f41e7f4 into dotnet:master Apr 20, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Mar 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Related to documentation of ML.NET
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants