Class NoriAnalyzerDescriptor
The nori analyzer consists of the following tokenizer and token filters:
- nori_tokenizer
- nori_part_of_speech token filter
- nori_readingform token filter
- nori_number token filter
- lowercase token filter
Inheritance
NoriAnalyzerDescriptor
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class NoriAnalyzerDescriptor : AnalyzerDescriptorBase<NoriAnalyzerDescriptor, INoriAnalyzer>, IDescriptor, INoriAnalyzer, IAnalyzer
Properties
| Edit this page View SourceType
Declaration
protected override string Type { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
| Edit this page View SourceDecompoundMode(NoriDecompoundMode?)
The regular expression pattern, defaults to \W+.
Declaration
public NoriAnalyzerDescriptor DecompoundMode(NoriDecompoundMode? mode)
Parameters
Type | Name | Description |
---|---|---|
NoriDecompoundMode? | mode |
Returns
Type | Description |
---|---|
NoriAnalyzerDescriptor |
StopTags(IEnumerable<string>)
An array of part-of-speech tags that should be removed.
Declaration
public NoriAnalyzerDescriptor StopTags(IEnumerable<string> stopTags)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<string> | stopTags |
Returns
Type | Description |
---|---|
NoriAnalyzerDescriptor |
StopTags(params string[])
An array of part-of-speech tags that should be removed.
Declaration
public NoriAnalyzerDescriptor StopTags(params string[] stopTags)
Parameters
Type | Name | Description |
---|---|---|
string[] | stopTags |
Returns
Type | Description |
---|---|
NoriAnalyzerDescriptor |
UserDictionary(string)
The Nori tokenizer uses the mecab-ko-dic dictionary by default. A user_dictionary with custom nouns (NNG) may be appended to the default dictionary. This property allows you to specify this file on disk
Declaration
public NoriAnalyzerDescriptor UserDictionary(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path |
Returns
Type | Description |
---|---|
NoriAnalyzerDescriptor |