Comments (7)
hey. I think there is still an error in the new test you gave us from A5-errata
q2d5_features = extract_query_doc_features(analyze_query(es, QUERY[2], 'body'), 'd5', es, index='toy_index')
assert q2d5_features['unique_query_terms_in_body'] == 2
assert q2d5_features['avg_TF_body'] == 1.0
where
q2d5_features['avg_TF_body'] should be 0.5 and not 1
d5 is
('d5', {'title': 't2', 'body': 't1 t2 t3 t5'})]
and QUERY[2] is
['t5', 't2']
so the sum of query terms frequency in body is 2. and the total number of terms is 4 --> 2/4 = 0.5.
Am I missing something here?
I get 1.0, because I divide on the unique amount of query terms, so 2/2 because we're aggregating over the terms that exist in both the analyzed query and document field?
from uis-dat640-fall2020.
Wondering about the same!
feature_vect_q3_d3 is only correct if we consider query length, and not unique as above.
from uis-dat640-fall2020.
Wondering about the same!
feature_vect_q3_d3 is only correct if we consider query length, and not unique as above.
But I am not sure if we can do that as it is mentioned 'unique query term'
from uis-dat640-fall2020.
Hello, please look at
https://github.com/kbalog/ir-course/blob/master/assignments/A5_errata.md.
from uis-dat640-fall2020.
hey. I think there is still an error in the new test you gave us from A5-errata
q2d5_features = extract_query_doc_features(analyze_query(es, QUERY[2], 'body'), 'd5', es, index='toy_index')
assert q2d5_features['unique_query_terms_in_body'] == 2
assert q2d5_features['avg_TF_body'] == 1.0
where
q2d5_features['avg_TF_body'] should be 0.5 and not 1
d5 is
('d5', {'title': 't2', 'body': 't1 t2 t3 t5'})]
and QUERY[2] is
['t5', 't2']
so the sum of query terms frequency in body is 2. and the total number of terms is 4 --> 2/4 = 0.5.
Am I missing something here?
from uis-dat640-fall2020.
hey. I think there is still an error in the new test you gave us from A5-errata
q2d5_features = extract_query_doc_features(analyze_query(es, QUERY[2], 'body'), 'd5', es, index='toy_index')
assert q2d5_features['unique_query_terms_in_body'] == 2
assert q2d5_features['avg_TF_body'] == 1.0
where
q2d5_features['avg_TF_body'] should be 0.5 and not 1
d5 is
('d5', {'title': 't2', 'body': 't1 t2 t3 t5'})]
and QUERY[2] is
['t5', 't2']
so the sum of query terms frequency in body is 2. and the total number of terms is 4 --> 2/4 = 0.5.
Am I missing something here?I get 1.0, because I divide on the unique amount of query terms, so 2/2 because we're aggregating over the terms that exist in both the analyzed query and document field?
should it be unique query terms though?
or else an aggregation function (sum, maximum, or average) over the term frequencies of each query term.
or should it be over the frequencies ( length) of query?
from uis-dat640-fall2020.
should it be unique query terms though?
or should it be over the frequencies ( length) of query?
@thek123
It's all query terms, check the last line of the errata.
from uis-dat640-fall2020.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uis-dat640-fall2020.