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
Return the language of the given text based on the provided language profiles.
104
104
105
105
# Arguments
106
-
- `text::AbstractString`: The text to identify the language of.
106
+
- `text`: A string or a collection of strings to be analyzed for language identification.
107
107
- `languages::Vector{String}`: The list of languages to choose from. Omitting this argument will use all supported languages.
108
108
- `profiles::Vector{Dict{Vector{UInt8}, Float32}}`: The language profiles to use for identification. Omitting this argument will use the default profiles.
109
109
- `ngram::Union{Int, AbstractVector}`: The length of utf-8 byte n-grams to use for language detection. The default value is the value set in [`initialize`](@ref), and should not exceed that value.
Returns the probability distribution of the language of the given text based on the provided language profiles.
132
132
133
133
# Arguments
134
-
- `text::AbstractString`: The text to identify the language of.
134
+
- `text`: A string or a collection of strings to be analyzed for language identification.
135
135
- `languages::Vector{String}`: A list of languages to choose from. If this argument is not provided, all the languages returned by the [`supported_languages`](@ref) function will be used.
136
136
- `profiles::Vector{Dict{Vector{UInt8}, Float32}}`: The language profiles to use for identification. If this argument is not provided, the default profiles will be used.
137
137
- `topk::Int`: The number of candidates to return. The default value is 5.
@@ -140,7 +140,7 @@ Returns the probability distribution of the language of the given text based on
140
140
# Returns
141
141
- A list of the `topk` languages and their probabilities.
0 commit comments