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

Make a /interact hook for the Terrier Scala notebooks #33

Open
cmacdonald opened this issue Jun 14, 2019 · 6 comments
Open

Make a /interact hook for the Terrier Scala notebooks #33

cmacdonald opened this issue Jun 14, 2019 · 6 comments

Comments

@cmacdonald
Copy link
Member

No description provided.

@ArthurCamara
Copy link
Member

I'm curious about how this is going to turn out

@cmacdonald
Copy link
Member Author

Be curious no longer - see https://github.com/osirrc/terrier-docker/tree/spark

docker run -p 1982:1982 -it terrier:latest /interact

@ryan-clancy
Copy link
Member

When running the notebook, I get the following error:

Name: Compile Error
Message: <console>:47: error: not found: value IndexRef
       val indexref = IndexRef.of("/path/to/index/data.properties")
                      ^
<console>:50: error: not found: value terrierHome
       "terrier.home" -> terrierHome)
                         ^
<console>:53: error: not found: value TopicSource
       val topics = TopicSource.extractTRECTopics(topicsFile)
                    ^
<console>:53: error: not found: value topicsFile
       val topics = TopicSource.extractTRECTopics(topicsFile)
                                                  ^
<console>:56: error: not found: type QueryingTransformer
       val queryTransform = new QueryingTransformer()
                                ^
<console>:56: error: <none> is abstract; cannot be instantiated
       val queryTransform = new QueryingTransformer()
                            ^
<console>:59: error: not found: value model
           .setSampleModel(model)
                           ^
<console>:63: error: not found: type QrelTransformer
       val qrelTransform = new QrelTransformer()
                               ^
<console>:63: error: <none> is abstract; cannot be instantiated
       val qrelTransform = new QrelTransformer()
                           ^
<console>:64: error: not found: value qrelsFile
           .setQrelsFile(qrelsFile)
                         ^
<console>:68: error: not found: type RankingEvaluator
       val ndcg = new RankingEvaluator(Measure.NDCG, 20).evaluateByQuery(r2).toList
                      ^
<console>:68: error: <none> is abstract; cannot be instantiated
       val ndcg = new RankingEvaluator(Measure.NDCG, 20).evaluateByQuery(r2).toList
                  ^
<console>:68: error: not found: value Measure
       val ndcg = new RankingEvaluator(Measure.NDCG, 20).evaluateByQuery(r2).toList
                                       ^
<console>:52: error: not found: value TopicSource
       TopicSource.configureTerrier(props)
       ^

StackTrace: 

@cmacdonald
Copy link
Member Author

cmacdonald commented Jun 14, 2019 via email

@ryan-clancy
Copy link
Member

Ahh, my mistake - I thought it was done!

@cmacdonald
Copy link
Member Author

@r-clancy we merged this today.

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

No branches or pull requests

3 participants