github / mentorships

GitHub Open Source Mentorships (deprecated)
335 stars 57 forks source link

What is the use of Sample folder in Linguist #68

Closed pawandeep2155 closed 9 years ago

pawandeep2155 commented 9 years ago

I came across Sample folder in Linguist and I think it has nothing to do with Linguist it is just for the developer to get some hand with that language

nemesiscodex commented 9 years ago

The Sample folder contains the dataset that may be used to make the classifier smarter. Acording to https://github.com/github/linguist/blob/master/CONTRIBUTING.md#fixing-a-misclassified-language

pchaigno commented 9 years ago

@pawandeep2155 - @nemesiscodex is right. It is used to train the Bayesian classifier. It is also used in many tests (see the tests folder).