Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc. improvements #17

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open

Misc. improvements #17

wants to merge 42 commits into from

Conversation

gtsherman
Copy link
Contributor

This PR contains miscellaneous improvements from independent work. Highlights:

  • IndexBackedSearchHits are SearchHits that know their source index so that details like docno etc. can be looked up rather than returning nulls and causing problems
  • Small conveniences like making classes Iterable and adding equals() and hashCode() methods
  • Enables more Indri features, e.g. stopping and setting mu directly in indri

@gtsherman
Copy link
Contributor Author

@craig-willis Submitting this PR as part of our efforts to bring together our independent changes to ir-tools. If you have a better way to do this, we should discuss.

@gtsherman gtsherman mentioned this pull request Sep 14, 2017
Garrick Sherman added 7 commits October 17, 2017 14:00
- Revert to not saving FeatureVector by default when querying
- Remove SoftReferences for storing FeatureVectors in
IndexBackedSearchHits
- StandardRM1Builder now:
	- Does not enforce DocScorer type
        - Creates DocScorers lazily (when buildRelevanceModel is called)
        - Creates the QueryScorer only once
- RM3Builder now:
        - Can be built with a pre-computed RM1 vector
…o garrick

Conflicts:
	src/main/java/edu/gslis/indexes/IndexWrapperLuceneImpl.java
	src/main/java/edu/gslis/searchhits/IndexBackedSearchHit.java
It turns out the IndexWrapperIndriImpl returns -1 if a docno isn't
found. This was causing crashes when fetching the feature vector for
unknown documents. These slight adjustments fix crashes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants