COVIDEX_RELATED_PATH='/home/tteofili/dev/anserini/lucene-index-covid-biobert-centroids'
COVIDEX_PATH='/home/tteofili/dev/anserini/lucene-index-covid-2020-04-03'import json
import os
import numpy| /* | |
| * Copyright 2021 Red Hat, Inc. and/or its affiliates. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| /* | |
| * Copyright 2021 Red Hat, Inc. and/or its affiliates. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| /* | |
| * Copyright 2020 Red Hat, Inc. and/or its affiliates. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| package io.anserini.ann; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.nio.file.Paths; | |
| import com.robrua.nlp.bert.Bert; | |
| import io.anserini.index.IndexArgs; | |
| import org.apache.lucene.document.Document; | |
| import org.apache.lucene.index.DirectoryReader; |