Examples of classify()


Examples of au.csiro.ontology.classification.IReasoner.classify()

        baseAxioms.add(f.createRoleInclusion(rlhs, rrhs));
       
        // The first time the classify method is called it runs a full
        // classification
        reasoner.loadAxioms(baseAxioms);
        reasoner.classify();
       
        // If classification worked properly then Endocarditis should be
        // classified not only as an Inflammation but also as a HeartDisease
        // and a CriticalDisease
        Ontology t = reasoner.getClassifiedOntology();
View Full Code Here

Examples of au.csiro.snorocket.core.NormalisedOntology.classify()

            System.out.println("Could not find version " + version + " in input files");
        }
        System.out.println("Loading axioms");
        no.loadAxioms(new HashSet<Axiom>(ont.getStatedAxioms()));
        System.out.println("Running classification");
        no.classify();
        System.out.println("Computing taxonomy");
        no.buildTaxonomy();
        System.out.println("Done");

        // If a relationship that is part of a role group is added incrementally
View Full Code Here

Examples of au.csiro.snorocket.core.SnorocketReasoner.classify()

        baseAxioms.add(f.createRoleInclusion(rlhs, rrhs));
       
        // The first time the classify method is called it runs a full
        // classification
        reasoner.loadAxioms(baseAxioms);
        reasoner.classify();
       
        // If classification worked properly then Endocarditis should be
        // classified not only as an Inflammation but also as a HeartDisease
        // and a CriticalDisease
        Ontology t = reasoner.getClassifiedOntology();
View Full Code Here

Examples of cc.mallet.classify.Classifier.classify()

      if (! useOutOfFold || ! m_table.containsKey(instName))
        return m_tokenClassifier.classify(instance);
     
      Classifier classifier = (Classifier) m_table.get(instName);

      return classifier.classify(instance);
    }

    // serialization
    private static final long serialVersionUID = 1;
    private static final int CURRENT_SERIAL_VERSION = 1;
View Full Code Here

Examples of com.clarkparsia.modularity.IncrementalClassifier.classify()

   
    // Get an instance of the incremental classifier
    IncrementalClassifier classifier = new IncrementalClassifier( ontology );

    // trigger classification
    classifier.classify();
       
    // persist the current state of the classifier to a file
    try {
      System.out.print( "Saving the state of the classifier to the file ... " );
      System.out.flush();
View Full Code Here

Examples of com.clarkparsia.modularity.IncrementalClassifier.classify()

    // We classify the ontology and use a specific timer to keep track of
    // the time required for the classification
    Timer t = timers.createTimer( "First classification" );
    t.start();
    classifier.classify();
    t.stop();
       
    System.out.println( "\nClassification time: " + t.getTotal() + "ms");
    System.out.println( "Subclasses of " + pain + ": " + classifier.getSubClasses( pain, true ).getFlattened() + "\n");
   
View Full Code Here

Examples of com.clarkparsia.modularity.IncrementalClassifier.classify()

    // Now we create a second timer to keep track of the performance of the
    // second classification
    t = timers.createTimer("Second classification");
    t.start();
    classifier.classify();
    t.stop();
   
    System.out.println( "\nClassification time: " + t.getTotal() + "ms");
    System.out.println( "Subclasses of " + pain + ": " + classifier.getSubClasses( pain, true ).getFlattened() + "\n");
View Full Code Here

Examples of com.clarkparsia.modularity.IncrementalClassifier.classify()

    OWL.manager.applyChange( new RemoveAxiom( ontologyTBox, axiom ) );

    // Now we create a third timer to keep track of the performance of the
    // third classification
    timers.startTimer( "Third classification" );
    classifier.classify();
    timers.stopTimer( "Third classification" );
   
    System.out.println( "\nClassification time: " + t.getTotal() + "ms");
    System.out.println( "Subclasses of " + pain + ": " + classifier.getSubClasses( pain, true ).getFlattened() + "\n");
   
View Full Code Here

Examples of com.digitalpebble.classification.TextClassifier.classify()

            .getClassifier(new File(resourceDir));
        // create a document from a String
        String[] tokens = Tokenizer.tokenize(text.toString(), true);
        Document doc = classifier.createDocument(tokens);
        // classify
        double[] scores = classifier.classify(doc);
        // get best label
        String label = classifier.getBestLabel(scores);
        System.out.println("Classified as : "+label);
      } catch (Exception e) {
        // TODO Auto-generated catch block
View Full Code Here

Examples of com.flaptor.hounder.classifier.bayes.BayesClassifier.classify()

            String item=cache.getItem(url);
            if (null==item){
                LOGGER.warn("Page " + url + "is in included for " + catName + " but not in cache");
                continue;
            }
            double classifierScore = classifier.classify(DocumentParser.parse(item, classifier.getMaxTuple()));
            boolean classifierIncluded = (classifierScore > 0.5);
            addToIncNotIncMap(mp, url, true, classifierIncluded, classifierScore);           
        }
        // traverse the list of not included urls and check what the classifier say
        for (String url: notIncludedUrlsList){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.