1 / 5
Oct 2012

I recently noticed that there's a new entry in the list of languages, e.g. when submitting a solution. It is labelled 'Python 3.2.3 nbc'. Does anyone know what it means?

Regards
Daft

  • created

    Oct '12
  • last reply

    Feb '15
  • 4

    replies

  • 3.0k

    views

  • 4

    users

  • 2

    likes

  • 1

    link

3 months later

I just googled it cause I was courious too: nbc means naive bayes classifier, a module provided by the native language toolkit (NLTK). The nbc-algorithm is based on the bayes-theorem (therefore the name) to calculate probabilities wether a certain condition is true or false, e. g. the prob of an email containing the word "viagra" beeing spam.

The module description is here:
http://nltk.org/api/nltk.classify.html#module-nltk.classify.naivebayes42

There also is a large wikipediaentry about nbc...

Thanks for your answer.

Although I'm not sure that you discovered the right "track". I doubt that natural language processing would be that relevant for SPOJ problem solving to lead to an installation of NLTK ...

A short test with Problem TEST resulted in NZEC:

import sys
import nltk
pass

Find it veeery hard to believe. It has (should) to have something to do with version of the interpreter. But at loss myself - little bit of poking around the site, the forum and ideone did not help. Would love to see staff's answer.

1 year later

Nbc means "no bytecode compilation" in this case - official answer.