Package cc.mallet.topics

Examples of cc.mallet.topics.TopicAssignment


        int topic = random.nextInt(numTopics);
        topics[position] = topic;
       
      }

      TopicAssignment t = new TopicAssignment(instance, topicSequence);
      data.add(t);
    }
   
    buildInitialTypeTopicCounts();
    initializeHistograms();
View Full Code Here


   
    // Get counts of phrases
    for (int ti = 0; ti < numTopics; ti++)
      phrases[ti] = new gnu.trove.TObjectIntHashMap<String>();
    for (int di = 0; di < this.getData().size(); di++) {
      TopicAssignment t = this.getData().get(di);
      Instance instance = t.instance;
      FeatureSequence fvs = (FeatureSequence) instance.getData();
      boolean withBigrams = false;
      if (fvs instanceof FeatureSequenceWithBigrams) withBigrams = true;
      int prevtopic = -1;
View Full Code Here

        int topic = random.nextInt(numTopics);
        topics[position] = topic;
       
      }

      TopicAssignment t = new TopicAssignment (instance, topicSequence);
      data.add (t);
    }
   
    buildInitialTypeTopicCounts();
    initializeHistograms();
View Full Code Here

   
    // Get counts of phrases
    for (int ti = 0; ti < numTopics; ti++)
      phrases[ti] = new gnu.trove.TObjectIntHashMap<String>();
    for (int di = 0; di < this.getData().size(); di++) {
      TopicAssignment t = this.getData().get(di);
      Instance instance = t.instance;
      FeatureSequence fvs = (FeatureSequence) instance.getData();
      boolean withBigrams = false;
      if (fvs instanceof FeatureSequenceWithBigrams) withBigrams = true;
      int prevtopic = -1;
View Full Code Here

        int topic = random.nextInt(numTopics);
        topics[position] = topic;
       
      }

      TopicAssignment t = new TopicAssignment (instance, topicSequence);
      data.add (t);
    }
   
    buildInitialTypeTopicCounts();
    initializeHistograms();
View Full Code Here

   
    // Get counts of phrases
    for (int ti = 0; ti < numTopics; ti++)
      phrases[ti] = new gnu.trove.TObjectIntHashMap<String>();
    for (int di = 0; di < this.getData().size(); di++) {
      TopicAssignment t = this.getData().get(di);
      Instance instance = t.instance;
      FeatureSequence fvs = (FeatureSequence) instance.getData();
      boolean withBigrams = false;
      if (fvs instanceof FeatureSequenceWithBigrams) withBigrams = true;
      int prevtopic = -1;
View Full Code Here

TOP

Related Classes of cc.mallet.topics.TopicAssignment

Copyright © 2018 www.massapicom. 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.