"ProgrammingLanguage" (Built-in Classifier)

Recognize the programming language of a code snippet.

Classes

    Out[1]//Short=

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 allclose all

Basic Examples  (2)

Determine the language of a given code:

In[1]:=
Click for copyable input
Out[1]=

Obtain the probabilities for the most likely classes:

In[2]:=
Click for copyable input
Out[2]=

Obtain a ClassifierFunction for this classifier:

In[1]:=
Click for copyable input
Out[1]=

Apply the classifier to a code snippet:

In[2]:=
Click for copyable input
Out[2]=

Scope  (1)

Options  (2)

Neat Examples  (1)

See Also

Classify  TextCases  ComputedProgrammingLanguage  Import

Related Models