osirrc / terrier-docker

OSIRRC Docker Image for Terrier
http://terrier.org/
2 stars 1 forks source link

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

Open cmacdonald opened 5 years ago

ArthurCamara commented 5 years ago

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

cmacdonald commented 5 years ago

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

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

ryan-clancy commented 5 years ago

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 commented 5 years ago

Ya, it's not ready yet...!

But thanks for trying it out

I can't fix the index location unless we know what collection was indexed - hence my question last night.

Craig

Sent from my iPhone

On 14 Jun 2019, at 22:37, Ryan Clancy notifications@github.com<mailto:notifications@github.com> wrote:

When running the notebook, I get the following error:

Name: Compile Error Message: :47: error: not found: value IndexRef val indexref = IndexRef.of("/path/to/index/data.properties") ^

:50: error: not found: value terrierHome "terrier.home" -> terrierHome) ^ :53: error: not found: value TopicSource val topics = TopicSource.extractTRECTopics(topicsFile) ^ :53: error: not found: value topicsFile val topics = TopicSource.extractTRECTopics(topicsFile) ^ :56: error: not found: type QueryingTransformer val queryTransform = new QueryingTransformer() ^ :56: error: is abstract; cannot be instantiated val queryTransform = new QueryingTransformer() ^ :59: error: not found: value model .setSampleModel(model) ^ :63: error: not found: type QrelTransformer val qrelTransform = new QrelTransformer() ^ :63: error: is abstract; cannot be instantiated val qrelTransform = new QrelTransformer() ^ :64: error: not found: value qrelsFile .setQrelsFile(qrelsFile) ^ :68: error: not found: type RankingEvaluator val ndcg = new RankingEvaluator(Measure.NDCG, 20).evaluateByQuery(r2).toList ^ :68: error: is abstract; cannot be instantiated val ndcg = new RankingEvaluator(Measure.NDCG, 20).evaluateByQuery(r2).toList ^ :68: error: not found: value Measure val ndcg = new RankingEvaluator(Measure.NDCG, 20).evaluateByQuery(r2).toList ^ :52: error: not found: value TopicSource TopicSource.configureTerrier(props) ^ StackTrace: — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
ryan-clancy commented 5 years ago

Ahh, my mistake - I thought it was done!

cmacdonald commented 5 years ago

@r-clancy we merged this today.