Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
... in favor of
pie-documents(documents, annotations, etc) andpytorch-ie(models, taskmodules, andtokenize_document).Details and additional changes:
>=0.33.0>=0.11.0pie-documents(in dataset scripts) pie-datasets#209). This is important since older versions do not work along withpie-documents.conll2003dataset script with the latest version from pie-datasets.pytorch_ie.PyTorchIEPipelineinstead ofpytorch_ie.AutoPipelinein configs.pie_core.AnnotationPipelineinstead ofpytorch_ie.Pipelinein main scripts (just type annotations).MyTransformerTokenClassificationModel) with@Model.register()instead of@PyTorchIEModel.register(). This is important to get model loading working from now on.serialize_document_typefrompie_core.utils.hydra(instead of frompytorch_ie.utils.hydra).AnnotationListwithAnnotationLayer.pytorch-ierelies now onPython>=3.10(see switch to3.10as min Python version pytorch-ie#500), this also changes the min Python version accordingly.pie-coreto0.3.0(just in the lock file).requires:
pie-datasets >=0.11.0.convert_datasetin predict script #214TODO:
pytorch-ie 0.33.0when available. requires:@pie_core.Modelpytorch-ie#503test_pipeline_with_documentspytorch-ie#506Note: I triple-checked that everything is running (slow tests), including
drugprotexperiments.