Implement compute_tf_idf(corpus, query).
corpus: a list of documents, each a list of word tokens.
query: a list of words.
For document dj (with ∣dj∣ tokens) and word w, with N documents in the corpus:
- Term frequency: tf(w,dj)=∣dj∣count of w in dj
- Document frequency df(w): the number of documents containing w (0 if it appears in none).
- Smoothed IDF, natural log: idf(w)=ln(df(w)+1N+1)+1
- Score: tfidf(w,dj)=tf(w,dj)⋅idf(w)
Return a list of lists with one inner list per document (in corpus order); inner list j holds the scores of the query words, in query order, for document dj. Round every score to 5 decimal places. A query word that appears in no document scores 0.0 for every document.