You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initialize the language detector with the given parameters. Different parameters have different balances among accuracy, speed, and memory usage.
29
29
30
30
# Arguments
31
31
- `languages::Vector{String}`: A list of languages to be used for language detection. If this argument is not provided, all the languages returned by the [`supported_languages`](@ref) function will be used.
32
-
- `ngram::Union{Int, AbstractVector}`: Specifies the length of UTF-8 byte n-grams to be utilized for language detection. An integer value can be provided to use a single n-gram size, while a range can be provided to use multiple n-gram sizes. The default value is 1:4, and the maximum value allowed is 7.
33
-
- `cutoff::Float64`: The cutoff value of the cumulative probability of the n-grams to use for language detection. The default value is 0.85, and it must be between 0 and 1.
34
-
- `vocabulary::Union{Int, AbstractRange}`: The size range of the vocabulary of each language. The default value is 1000:5000.
32
+
- `ngram::Union{Int, AbstractVector}`: Specifies the length of UTF-8 byte n-grams to be utilized for language detection. An integer value can be provided to use a single n-gram size, while a range can be provided to use multiple n-gram sizes. The default value is `1:4`, and the maximum value allowed is `7`.
33
+
- `cutoff::Float64`: The cutoff value of the cumulative probability of the n-grams to use for language detection. The default value is `0.85`, and it must be between `0` and `1`.
34
+
- `vocabulary::Union{Int, AbstractRange}`: The size range of the vocabulary of each language. The default value is `1000:5000`.
0 commit comments