"ProgrammingLanguage" (Built-in Classifier)
-
See Also
- Classify
- TextCases
- Import
-
- Interpreter Types
- ComputedProgrammingLanguage
-
- Classifiers
- Language
- FacebookTopic
- Sentiment
- Related Guides
-
-
See Also
- Classify
- TextCases
- Import
-
- Interpreter Types
- ComputedProgrammingLanguage
-
- Classifiers
- Language
- FacebookTopic
- Sentiment
- Related Guides
-
See Also
"ProgrammingLanguage" (Built-in Classifier)
Recognize the programming language of a code snippet.
Classes
Details
- This classifier assumes the string input is written in a unique programming language. The probabilities reflect the belief in which language the program is written, not the proportion of languages.
Examples
open all close allBasic Examples (2)
Determine the language of a given code:
Obtain the probabilities for the most likely classes:
Obtain a ClassifierFunction for this classifier:
Apply the classifier to a code snippet:
Scope (1)
Load the ClassifierFunction corresponding to the built-in classifier:
Obtain the possible classes:
Options (2)
ClassPriors (1)
Use a custom ClassPriors to restrict the possible outputs:
IndeterminateThreshold (1)
Use a custom IndeterminateThreshold :
Neat Examples (1)
Obtain different possible languages with their corresponding probabilities:
Visualize the result using WordCloud :
See Also
Interpreter Types: ComputedProgrammingLanguage
Classifiers: Language FacebookTopic Sentiment
Related Guides
History
Introduced in 2018 (11.3)