Class TokenInfoDictionaryBuilder
Inheritance
System.Object
TokenInfoDictionaryBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Analysis.Ja.Util
Assembly: Lucene.Net.Analysis.Kuromoji.dll
Syntax
public class TokenInfoDictionaryBuilder
Constructors
| Improve this Doc View SourceTokenInfoDictionaryBuilder(DictionaryBuilder.DictionaryFormat, String, Boolean)
Declaration
public TokenInfoDictionaryBuilder(DictionaryBuilder.DictionaryFormat format, string encoding, bool normalizeEntries)
Parameters
Type | Name | Description |
---|---|---|
DictionaryBuilder.DictionaryFormat | format | |
System.String | encoding | |
System.Boolean | normalizeEntries |
Methods
| Improve this Doc View SourceBuild(String)
Declaration
public virtual TokenInfoDictionaryWriter Build(string dirname)
Parameters
Type | Name | Description |
---|---|---|
System.String | dirname |
Returns
Type | Description |
---|---|
TokenInfoDictionaryWriter |
BuildDictionary(IList<String>)
Declaration
public virtual TokenInfoDictionaryWriter BuildDictionary(IList<string> csvFiles)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<System.String> | csvFiles |
Returns
Type | Description |
---|---|
TokenInfoDictionaryWriter |
FormatEntry(String[])
IPADIC features
0 - surface 1 - left cost 2 - right cost 3 - word cost 4-9 - pos 10 - base form 11 - reading 12 - pronounciation
UniDic features
0 - surface 1 - left cost 2 - right cost 3 - word cost 4-9 - pos 10 - base form reading 11 - base form 12 - surface form 13 - surface reading
Declaration
public virtual string[] FormatEntry(string[] features)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | features |
Returns
Type | Description |
---|---|
System.String[] |