Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def getBacteriaTokens(names=None):
    # Install file if needed
    if not hasattr(Settings, "TEES_RESOURCES"):
        print >> sys.stderr, "TEES example builder data files not installed, installing now"
        installBBData(updateLocalSettings=True)
    # Get the tokens
    tokens = set()
    if names != None:
        for name in names:
            for split in name.split():
                tokens.add(split.lower())
    else:
        f = open(os.path.join(Settings.TEES_RESOURCES, "bacteria-tokens.txt"), "rt")
        for line in f:
            tokens.add(line.strip())
        f.close()
    return tokens
        


src/t/e/TEES-HEAD/ExampleBuilders/EntityExampleBuilder.py   TEES(Download)
            self.wordNetFeatureBuilder = WordNetFeatureBuilder(featureSet)
        if self.styles["bb_features"]:
            self.bacteriaTokens = PhraseTriggerExampleBuilder.getBacteriaTokens()
            #self.bacteriaTokens = PhraseTriggerExampleBuilder.getBacteriaTokens(PhraseTriggerExampleBuilder.getBacteriaNames())
        if self.styles["giuliano"]: