Class VocabularyFile3
Inheritance
System.Object
VocabularyFile3
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public abstract class VocabularyFile3 : Object
Constructors
VocabularyFile3()
Declaration
Fields
_contiguousKeys
Declaration
protected bool _contiguousKeys
Field Value
Type |
Description |
System.Boolean |
|
_Dirty
Declaration
Field Value
Type |
Description |
System.Boolean |
|
_KeyWordMap
Declaration
protected Dictionary<int, TokenWithCount> _KeyWordMap
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.Int32, TokenWithCount> |
|
Properties
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Dirty
Declaration
public bool Dirty { get; }
Property Value
Type |
Description |
System.Boolean |
|
SpecialTokenIDs
Declaration
public SpecialTokenIDs SpecialTokenIDs { get; }
Property Value
Type |
Description |
Sdl.LanguagePlatform.Stat.SpecialTokenIDs |
|
Methods
Add(Int32, String)
Declaration
public void Add(int key, string s)
Parameters
Type |
Name |
Description |
System.Int32 |
key |
|
System.String |
s |
|
Add(Int32, String, Int32)
Declaration
public void Add(int key, string s, int count)
Parameters
Type |
Name |
Description |
System.Int32 |
key |
|
System.String |
s |
|
System.Int32 |
count |
|
Add(String)
Declaration
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
Type |
Description |
System.Int32 |
|
Dump(TextWriter)
Declaration
public void Dump(TextWriter wtr)
Parameters
Type |
Name |
Description |
System.IO.TextWriter |
wtr |
|
Dump(String)
Declaration
public void Dump(string fileName)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
GetIDs(IEnumerable<String>)
Declaration
public List<int> GetIDs(IEnumerable<string> words)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
words |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.Int32> |
|
Declaration
public IntSegment GetIntSegment(List<Token> tokens)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<Token> |
tokens |
|
Returns
Type |
Description |
Sdl.LanguagePlatform.Stat.IntSegment |
|
Declaration
public Task<List<int>> GetStopwordIDsAsync(CultureCode culture, IResourceDataAccessorAsync accessor)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<System.Int32>> |
|
Declaration
public static string GetTokenString(Token t)
Parameters
Type |
Name |
Description |
Token |
t |
|
Returns
Type |
Description |
System.String |
|
HasAllSpecialIDs()
Declaration
public bool HasAllSpecialIDs()
Returns
Type |
Description |
System.Boolean |
|
LoadAsync()
Declaration
public abstract Task LoadAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Lookup(Int32)
Declaration
public string Lookup(int key)
Parameters
Type |
Name |
Description |
System.Int32 |
key |
|
Returns
Type |
Description |
System.String |
|
Lookup(String)
Declaration
public int Lookup(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
Type |
Description |
System.Int32 |
|
LookupFull(Int32)
Declaration
public TokenWithCount LookupFull(int key)
Parameters
Type |
Name |
Description |
System.Int32 |
key |
|
Returns
LookupOrAdd(String)
Declaration
public virtual int LookupOrAdd(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
Type |
Description |
System.Int32 |
|
LookupSpecialTokenIDs()
Declaration
protected void LookupSpecialTokenIDs()