Coder Social home page Coder Social logo

mltool4j's People

Watchers

 avatar

mltool4j's Issues

invertedIndex print incorrectly

What steps will reproduce the problem?
Step1 The datafile is 
{8,1,2,0,0;
 9,1,1,0,0;
 0,1,2,1,7;
 0,1,2,1,8}
Step2 I added the following code under the line in 1. 
for (int w = 0; w < this.V; w++){
     Posting[] postings = this.invertedIndex[w];
     System.out.println("word " + w + " appears in "+ postings.length + " docs");
     for (Posting posting : postings){
         System.out.print("word "+ w  +": ("+posting.docID + " ");
    }
    System.out.println();
 }


What is the expected output? What do you see instead?
 I expected to see a list of docId for each word. i.e.
word 0 appears in 2 docs
word 0: (0,1)
word 1 appears in 4 docs
word 1: (0,1,2,3) 
word 2 appears in 4 docs
word 2: (0,1,2,3)  
word 3 appears in 2 docs
word 3: (2,3) 
word 4 appears in 2 docs
word 4: (2,3) 

However, I only see the last docId for each word as follows. 
word 0 appears in 1 docs
word 0: (1 
word 1 appears in 1 docs
word 1: (3 
word 2 appears in 1 docs
word 2: (3 
word 3 appears in 1 docs
word 3: (3 
word 4 appears in 1 docs
word 4: (3 

Please provide any additional information below.
Q: What does this code snippet mean?
for (int w = 0; w < this.V; w++){
            this.invertedIndex[w] = list[w].toArray(new Posting[0]);//Posting[0]?
        }

Original issue reported on code.google.com by [email protected] on 4 Sep 2012 at 9:20

Format of csv file inputted

May I know the format of the CSV file expected for the probabilisticLSA 
algoritm. 

I have attached the CSV file I am using .But it is getting 
NumberFormatException while tokenizing the line .


Original issue reported on code.google.com by [email protected] on 20 Mar 2015 at 5:51

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.