mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 08:15:28 +03:00
Merge branch 'dev' into code-cleanup
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
* Contributor(s):
|
||||
* Shy Shalom <shooshX@gmail.com>
|
||||
* Rudi Pettazzi <rudi.pettazzi@gmail.com> (C# port)
|
||||
*
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
@@ -39,16 +39,16 @@
|
||||
using System;
|
||||
|
||||
namespace UniversalDetector.Core
|
||||
{
|
||||
{
|
||||
public abstract class SequenceModel
|
||||
{
|
||||
// [256] table use to find a char's order
|
||||
protected byte[] charToOrderMap;
|
||||
|
||||
// [SAMPLE_SIZE][SAMPLE_SIZE] table to find a 2-char sequence's
|
||||
// frequency
|
||||
|
||||
// [SAMPLE_SIZE][SAMPLE_SIZE] table to find a 2-char sequence's
|
||||
// frequency
|
||||
protected byte[] precedenceMatrix;
|
||||
|
||||
|
||||
// freqSeqs / totalSeqs
|
||||
protected float typicalPositiveRatio;
|
||||
|
||||
@@ -76,16 +76,16 @@ namespace UniversalDetector.Core
|
||||
this.keepEnglishLetter = keepEnglishLetter;
|
||||
this.charsetName = charsetName;
|
||||
}
|
||||
|
||||
|
||||
public byte GetOrder(byte b)
|
||||
{
|
||||
return charToOrderMap[b];
|
||||
}
|
||||
|
||||
|
||||
public byte GetPrecedence(int pos)
|
||||
{
|
||||
return precedenceMatrix[pos];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user