Changeset 16414


Ignore:
Timestamp:
Jul 27, 2016, 11:25:46 AM (3 years ago)
Author:
dferreira
Message:

Black box scripts improved. Ready to run.

Location:
internals/2016/aptoideimagesdetector/trunk/Source Code
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • internals/2016/aptoideimagesdetector/trunk/Source Code/Text_categorization/Text_categorization.py

    r16413 r16414  
    4040                classifier = pickle.load(f)
    4141                f.close()
     42
     43                f = open(fn+"/Text_categorization/word_features.pickle", "rb")
     44                word_features = pickle.load(f)
     45                f.close()
    4246        except:
    4347                print "Serialized objects not found"
     
    6973
    7074        d = find_features(description, size, cat, age)
    71        
     75        #print d
    7276        return classifier.prob_classify(d)
    7377
    7478if __name__=="__main__":
    75         dist = text_cat("Are you looking for Porn Movies ? If yes, you are at right place. Enjoy porn movies. You can download porn movies also to enjoy later. Tag: Porn, Porno, Sex, Adult, Downloader, sex, xxx, xx", 20 ,"ApplicationsEntertainment", 18)
     79        dist = text_cat("sex", 21 ,"ApplicationsEntertainment", 18)
    7680        print dist.prob('exp')
  • internals/2016/aptoideimagesdetector/trunk/Source Code/analyse_app.py

    r16412 r16414  
    9999        dist = analyse_app(illust2vec, icons, screenshots, description, category, age, size, title)
    100100        print dist.prob('exp')
    101        
Note: See TracChangeset for help on using the changeset viewer.