-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
shauheen
merged 8 commits into
dotnet:master
from
Ivanidzo4ka:Ivanidze/StopWordsRemoverXmlDocumentation
Apr 20, 2019
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ea847a9
Update documentation for stopwords
eb72063
Merge branch 'master' into Ivanidze/StopWordsRemoverXmlDocumentation
7e1016c
string to text
818ec4a
address comments
a8049d9
address comments
f3f9003
ReadOnly to TextDataViewType
5c5fc26
address comments
abff8d4
small update for types
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -251,12 +251,14 @@ internal static NgramExtractingEstimator ProduceNgrams(this TransformsCatalog.Te | |
=> new NgramExtractingEstimator(Contracts.CheckRef(catalog, nameof(catalog)).GetEnvironment(), columns); | ||
|
||
/// <summary> | ||
/// 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. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
for later: we should that these language-specific lists to docs. |
||
/// </summary> | ||
/// <param name="catalog">The text-related transform's catalog.</param> | ||
/// <param name="outputColumnName">The column containing output text. Null means <paramref name="inputColumnName"/> is replaced.</param> | ||
/// <param name="inputColumnName">The column containing text to remove stop words on.</param> | ||
/// <param name="catalog">The transform's catalog.</param> | ||
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>. | ||
/// This column's data type will be variable-sized vector of text.</param> | ||
/// <param name="inputColumnName">Name of the column to copy the data from. | ||
/// This estimator operates over vector of text.</param> | ||
/// <param name="language">Langauge of the input text column <paramref name="inputColumnName"/>.</param> | ||
/// <example> | ||
/// <format type="text/markdown"> | ||
|
@@ -272,12 +274,14 @@ public static StopWordsRemovingEstimator RemoveDefaultStopWords(this TransformsC | |
=> new StopWordsRemovingEstimator(Contracts.CheckRef(catalog, nameof(catalog)).GetEnvironment(), outputColumnName, inputColumnName, language); | ||
|
||
/// <summary> | ||
/// 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 text specified in <paramref name="stopwords"/> from it. | ||
/// </summary> | ||
/// <param name="catalog">The text-related transform's catalog.</param> | ||
/// <param name="outputColumnName">The column containing output text. Null means <paramref name="inputColumnName"/> is replaced.</param> | ||
/// <param name="inputColumnName">The column containing text to remove stop words on.</param> | ||
/// <param name="catalog">The transform's catalog.</param> | ||
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>. | ||
/// This column's data type will be variable-sized vector of text.</param> | ||
/// <param name="inputColumnName">Name of the column to copy the data from. | ||
/// This estimator operates over vector of text.</param> | ||
/// <param name="stopwords">Array of words to remove.</param> | ||
/// <example> | ||
/// <format type="text/markdown"> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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