Menu

How to get tf or idf of a term with galago?

Galago
iris
2019-05-07
2019-05-07
  • iris

    iris - 2019-05-07

    How to get tf or idf of a term with galago?
    Every time I run the command line — batch-search, I can see the term frequence in the screen, But how can I get the frequence of a term in my code rather than in output screen,so that it can be computed in my way?

     
    • Michael Zarozinski

      Please see the dump-term-stats function.

       
  • iris

    iris - 2019-05-07

    Thank you very much, Michael. I find the function. according to the result, the first column is word, the second column is term frequency in the collection, the third column is document count, is that right?
    And can you explain the meaning of extent , posting, and field ?
    It confuses me a lot after I created the apendix.

     
  • iris

    iris - 2019-05-07

    In indri, query likelihood model is compeleted by "#combine(term1 term2)", so what's the difference between "term1 term2" and "#combine(term1 term2)"?
    In galago, is query likelihood model also compeleted by "#combine(term1 term2)"?
    And, how to use galago to achieve the MLE method?

     

Log in to post a comment.