Skip to content

Commit

Permalink
Lucene.Net.Analysis.OpenNLP: Added additional docs about usage to the…
Browse files Browse the repository at this point in the history
… class headers of OpenNLPChunkerFilter and OpenNLPPOSFilter
  • Loading branch information
NightOwl888 committed Feb 1, 2024
1 parent c378fc5 commit 653a4b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Lucene.Net.Analysis.OpenNLP/OpenNLPChunkerFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ namespace Lucene.Net.Analysis.OpenNlp
/// <summary>
/// Run OpenNLP chunker. Prerequisite: the <see cref="OpenNLPTokenizer"/> and <see cref="OpenNLPPOSFilter"/> must precede this filter.
/// Tags terms in the <see cref="ITypeAttribute"/>, replacing the POS tags previously put there by <see cref="OpenNLPPOSFilter"/>.
/// <para/>
/// The <see cref="Lucene.Net.Analysis.Payloads.TypeAsPayloadTokenFilter"/> can be used to copy the POS tag values to
/// <see cref="Lucene.Net.Analysis.TokenAttributes.IPayloadAttribute"/>, which will index the value. Alternatively, the
/// <see cref="Lucene.Net.Analysis.Miscellaneous.TypeAsSynonymFilter"/> creates a cloned token at the same position as
/// each tagged token, and copies the <see cref="Lucene.Net.Analysis.TokenAttributes.ITypeAttribute"/> value to the
/// <see cref="Lucene.Net.Analysis.TokenAttributes.ICharTermAttribute"/>, optionally with a customized prefix
/// (so that tags effectively occupy a different namespace from token text).
/// </summary>
public sealed class OpenNLPChunkerFilter : TokenFilter
{
Expand Down
7 changes: 7 additions & 0 deletions src/Lucene.Net.Analysis.OpenNLP/OpenNLPPOSFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ namespace Lucene.Net.Analysis.OpenNlp

/// <summary>
/// Run OpenNLP POS tagger. Tags all terms in the <see cref="ITypeAttribute"/>.
/// <para/>
/// The <see cref="Lucene.Net.Analysis.Payloads.TypeAsPayloadTokenFilter"/> can be used to copy the POS tag values to
/// <see cref="Lucene.Net.Analysis.TokenAttributes.IPayloadAttribute"/>, which will index the value. Alternatively, the
/// <see cref="Lucene.Net.Analysis.Miscellaneous.TypeAsSynonymFilter"/> creates a cloned token at the same position as
/// each tagged token, and copies the <see cref="Lucene.Net.Analysis.TokenAttributes.ITypeAttribute"/> value to the
/// <see cref="Lucene.Net.Analysis.TokenAttributes.ICharTermAttribute"/>, optionally with a customized prefix
/// (so that tags effectively occupy a different namespace from token text).
/// </summary>
public sealed class OpenNLPPOSFilter : TokenFilter
{
Expand Down

0 comments on commit 653a4b1

Please sign in to comment.