Crosstips.org

My fun Crossword solver project. Crosstips.org & Krysstips.se

Kung Fu

Fujian White Crane Kung Fu

Fry-IT

Fry-IT is the company I work for

Photos

Photoalbum, both old and new.

Zope

What I have and am doing with Zope

Receptsamlingen

In Swedish only. About my "Collection of Recipes" website.

Contact me

My contact details and how to contact me.

 

KungFuPeople.com
Do you train Kung Fu?
Or know someone who does?
Then check out KungFuPeople.com


Mobile version of this page Mobile version of this page


 

You searched for keyword:sections
 

found 0 photos and 1 blogs in and 0 blog comments in 0.00 seconds



 

Blogs

  Playing with Reverend Bayesian - 18th of October 2005

I've been playing around with Reverend a bit on getting it to correctly guess appropriate "Sections" for issues on the Real issuetracker. What I did was that I downloaded all 140 issuetexts and their "Sections" attribute which is a list (that is often of length 1). From list dataset I did a loop over each text and the sections within it (skipped the default section General) so something like this:

 data = ({'sections':['General','Installation'], 
          'text':"bla bla bla..."}
         {'sections':['Filter functions'], 
          'text':"Lorem ipsum foo bar..."}
         ...)
 for item in data:
     secs = [each for each item['sections'] if each != 'General']
     for section in secs:
         guesser.train(section, item['text'])