jina.jaml.helper

class jina.jaml.helper.JinaConstructor[source]

Bases: yaml.constructor.FullConstructor

Convert List into tuple when doing hashing

get_hashable_key(key)[source]
construct_mapping(node, deep=True)[source]
class jina.jaml.helper.JinaResolver[source]

Bases: yaml.resolver.Resolver

Remove on|On|ON as bool resolver

class jina.jaml.helper.JinaLoader(stream)[source]

Bases: yaml.reader.Reader, yaml.scanner.Scanner, yaml.parser.Parser, yaml.composer.Composer, jina.jaml.helper.JinaConstructor, jina.jaml.helper.JinaResolver

Initialize the scanner.

yaml_constructors = {'tag:yaml.org,2002:null': <function SafeConstructor.construct_yaml_null>, 'tag:yaml.org,2002:bool': <function SafeConstructor.construct_yaml_bool>, 'tag:yaml.org,2002:int': <function SafeConstructor.construct_yaml_int>, 'tag:yaml.org,2002:float': <function SafeConstructor.construct_yaml_float>, 'tag:yaml.org,2002:binary': <function SafeConstructor.construct_yaml_binary>, 'tag:yaml.org,2002:timestamp': <function SafeConstructor.construct_yaml_timestamp>, 'tag:yaml.org,2002:omap': <function SafeConstructor.construct_yaml_omap>, 'tag:yaml.org,2002:pairs': <function SafeConstructor.construct_yaml_pairs>, 'tag:yaml.org,2002:set': <function SafeConstructor.construct_yaml_set>, 'tag:yaml.org,2002:str': <function SafeConstructor.construct_yaml_str>, 'tag:yaml.org,2002:seq': <function SafeConstructor.construct_yaml_seq>, 'tag:yaml.org,2002:map': <function SafeConstructor.construct_yaml_map>, None: <function SafeConstructor.construct_undefined>, 'tag:yaml.org,2002:python/none': <function SafeConstructor.construct_yaml_null>, 'tag:yaml.org,2002:python/bool': <function SafeConstructor.construct_yaml_bool>, 'tag:yaml.org,2002:python/str': <function FullConstructor.construct_python_str>, 'tag:yaml.org,2002:python/unicode': <function FullConstructor.construct_python_unicode>, 'tag:yaml.org,2002:python/bytes': <function FullConstructor.construct_python_bytes>, 'tag:yaml.org,2002:python/int': <function SafeConstructor.construct_yaml_int>, 'tag:yaml.org,2002:python/long': <function FullConstructor.construct_python_long>, 'tag:yaml.org,2002:python/float': <function SafeConstructor.construct_yaml_float>, 'tag:yaml.org,2002:python/complex': <function FullConstructor.construct_python_complex>, 'tag:yaml.org,2002:python/list': <function SafeConstructor.construct_yaml_seq>, 'tag:yaml.org,2002:python/tuple': <function FullConstructor.construct_python_tuple>, 'tag:yaml.org,2002:python/dict': <function SafeConstructor.construct_yaml_map>, '!JAMLCompatible': <bound method JAMLCompatible._from_yaml of <class 'jina.jaml.JAMLCompatible'>>, '!BetterEnum': <bound method BetterEnum._from_yaml of <enum 'BetterEnum'>>, '!SchedulerType': <bound method BetterEnum._from_yaml of <enum 'SchedulerType'>>, '!PollingType': <bound method BetterEnum._from_yaml of <enum 'PollingType'>>, '!FlowOptimizeLevel': <bound method BetterEnum._from_yaml of <enum 'FlowOptimizeLevel'>>, '!LogVerbosity': <bound method BetterEnum._from_yaml of <enum 'LogVerbosity'>>, '!SocketType': <bound method BetterEnum._from_yaml of <enum 'SocketType'>>, '!FlowOutputType': <bound method BetterEnum._from_yaml of <enum 'FlowOutputType'>>, '!FlowBuildLevel': <bound method BetterEnum._from_yaml of <enum 'FlowBuildLevel'>>, '!PeaRoleType': <bound method BetterEnum._from_yaml of <enum 'PeaRoleType'>>, '!PodRoleType': <bound method BetterEnum._from_yaml of <enum 'PodRoleType'>>, '!RequestType': <bound method BetterEnum._from_yaml of <enum 'RequestType'>>, '!CompressAlgo': <bound method BetterEnum._from_yaml of <enum 'CompressAlgo'>>, '!SkipOnErrorType': <bound method BetterEnum._from_yaml of <enum 'SkipOnErrorType'>>, '!FlowInspectType': <bound method BetterEnum._from_yaml of <enum 'FlowInspectType'>>, '!RemoteAccessType': <bound method BetterEnum._from_yaml of <enum 'RemoteAccessType'>>, '!RemotePeapodType': <bound method BetterEnum._from_yaml of <enum 'RemotePeapodType'>>, '!BuildTestLevel': <bound method BetterEnum._from_yaml of <enum 'BuildTestLevel'>>, '!DataInputType': <bound method BetterEnum._from_yaml of <enum 'DataInputType'>>, '!RuntimeBackendType': <bound method BetterEnum._from_yaml of <enum 'RuntimeBackendType'>>, '!BaseExecutor': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.BaseExecutor'>>, '!CompoundExecutor': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.compound.CompoundExecutor'>>, '!BaseDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.BaseDriver'>>, '!BaseRecursiveDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.BaseRecursiveDriver'>>, '!BaseExecutableDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.BaseExecutableDriver'>>, '!FilterQL': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.querylang.filter.FilterQL'>>, '!BaseEncodeDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.encode.BaseEncodeDriver'>>, '!EncodeDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.encode.EncodeDriver'>>, '!MultiModalDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.multimodal.MultiModalDriver'>>, '!BaseIndexDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.index.BaseIndexDriver'>>, '!VectorIndexDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.index.VectorIndexDriver'>>, '!KVIndexDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.index.KVIndexDriver'>>, '!BaseSearchDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.search.BaseSearchDriver'>>, '!KVSearchDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.search.KVSearchDriver'>>, '!VectorFillDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.search.VectorFillDriver'>>, '!VectorSearchDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.search.VectorSearchDriver'>>, '!BaseEvaluateDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.evaluate.BaseEvaluateDriver'>>, '!FieldEvaluateDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.evaluate.FieldEvaluateDriver'>>, '!RankEvaluateDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.evaluate.RankEvaluateDriver'>>, '!NDArrayEvaluateDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.evaluate.NDArrayEvaluateDriver'>>, '!TextEvaluateDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.evaluate.TextEvaluateDriver'>>, '!LoadGroundTruthDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.evaluate.LoadGroundTruthDriver'>>, '!BaseRankDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.rank.BaseRankDriver'>>, '!Matches2DocRankDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.rank.Matches2DocRankDriver'>>, '!BaseRanker': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.rankers.BaseRanker'>>, '!Chunk2DocRanker': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.rankers.Chunk2DocRanker'>>, '!Match2DocRanker': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.rankers.Match2DocRanker'>>, '!BaseAggregateMatchesRanker': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.rank.aggregate.BaseAggregateMatchesRanker'>>, '!Chunk2DocRankDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.rank.aggregate.Chunk2DocRankDriver'>>, '!AggregateMatches2DocRankDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.rank.aggregate.AggregateMatches2DocRankDriver'>>, '!ReverseQL': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.querylang.reverse.ReverseQL'>>, '!SegmentDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.segment.SegmentDriver'>>, '!SliceQL': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.querylang.slice.SliceQL'>>, '!BaseControlDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.control.BaseControlDriver'>>, '!LogInfoDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.control.LogInfoDriver'>>, '!WaitDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.control.WaitDriver'>>, '!ControlReqDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.control.ControlReqDriver'>>, '!RouteDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.control.RouteDriver'>>, '!ForwardDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.control.ForwardDriver'>>, '!ReduceDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.control.ReduceDriver'>>, '!ConvertDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.convert.ConvertDriver'>>, '!URI2Buffer': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.convert.URI2Buffer'>>, '!URI2DataURI': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.convert.URI2DataURI'>>, '!Buffer2URI': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.convert.Buffer2URI'>>, '!Text2URI': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.convert.Text2URI'>>, '!URI2Text': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.convert.URI2Text'>>, '!Blob2PngURI': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.convert.Blob2PngURI'>>, '!BasePredictDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.predict.BasePredictDriver'>>, '!BaseLabelPredictDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.predict.BaseLabelPredictDriver'>>, '!BinaryPredictDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.predict.BinaryPredictDriver'>>, '!OneHotPredictDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.predict.OneHotPredictDriver'>>, '!MultiLabelPredictDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.predict.MultiLabelPredictDriver'>>, '!Prediction2DocBlobDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.predict.Prediction2DocBlobDriver'>>, '!CraftDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.craft.CraftDriver'>>, '!ExcludeQL': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.querylang.select.ExcludeQL'>>, '!SelectQL': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.querylang.select.SelectQL'>>, '!ExcludeReqQL': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.querylang.select.ExcludeReqQL'>>, '!SelectReqQL': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.querylang.select.SelectReqQL'>>, '!ReduceAllDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.reduce.ReduceAllDriver'>>, '!CollectEvaluationDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.reduce.CollectEvaluationDriver'>>, '!ConcatEmbedDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.reduce.ConcatEmbedDriver'>>, '!SortQL': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.querylang.sort.SortQL'>>, '!BaseIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.indexers.BaseIndexer'>>, '!BaseVectorIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.indexers.BaseVectorIndexer'>>, '!BaseKVIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.indexers.BaseKVIndexer'>>, '!UniqueVectorIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.indexers.UniqueVectorIndexer'>>, '!CompoundIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.indexers.CompoundIndexer'>>, '!BaseCache': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.indexers.cache.BaseCache'>>, '!DocIDCache': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.indexers.cache.DocIDCache'>>, '!BaseCacheDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.cache.BaseCacheDriver'>>, '!TaggingCacheDriver': <bound method JAMLCompatible._from_yaml of <class 'jina.drivers.cache.TaggingCacheDriver'>>, '!BaseEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.BaseEncoder'>>, '!BaseNumericEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.BaseNumericEncoder'>>, '!BaseImageEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.BaseImageEncoder'>>, '!BaseVideoEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.BaseVideoEncoder'>>, '!BaseAudioEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.BaseAudioEncoder'>>, '!BaseTextEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.BaseTextEncoder'>>, '!PipelineEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.PipelineEncoder'>>, '!BaseClientExecutor': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.clients.BaseClientExecutor'>>, '!BaseTFServingClientExecutor': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.clients.BaseTFServingClientExecutor'>>, '!BaseTFServingClientEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.tfserving.BaseTFServingClientEncoder'>>, '!UnaryTFServingClientEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.tfserving.UnaryTFServingClientEncoder'>>, '!BaseFlow': <bound method JAMLCompatible._from_yaml of <class 'jina.flow.base.BaseFlow'>>, '!Flow': <bound method JAMLCompatible._from_yaml of <class 'jina.flow.Flow'>>, '!BaseEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.evaluators.BaseEvaluator'>>, '!FileBasedEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.evaluators.FileBasedEvaluator'>>, '!BaseRankingEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.evaluators.rank.BaseRankingEvaluator'>>, '!RecallEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.evaluators.rank.recall.RecallEvaluator'>>, '!BaseNumpyIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.indexers.vector.BaseNumpyIndexer'>>, '!NumpyIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.indexers.vector.NumpyIndexer'>>, '!TransformEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.numeric.TransformEncoder'>>, '!BaseCrafter': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.crafters.BaseCrafter'>>, '!BaseMultiModalEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.multimodal.BaseMultiModalEncoder'>>, '!BaseOnnxEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.frameworks.BaseOnnxEncoder'>>, '!BaseTFEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.frameworks.BaseTFEncoder'>>, '!BaseTorchEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.frameworks.BaseTorchEncoder'>>, '!BasePaddleEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.frameworks.BasePaddleEncoder'>>, '!BaseMindsporeEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.encoders.frameworks.BaseMindsporeEncoder'>>, '!BaseEmbeddingEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.evaluators.embedding.BaseEmbeddingEvaluator'>>, '!BaseClassifier': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.classifiers.BaseClassifier'>>, '!CosineEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.evaluators.embedding.cosine.CosineEvaluator'>>, '!BaseTextEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.evaluators.text.BaseTextEvaluator'>>, '!EuclideanEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.evaluators.embedding.euclidean.EuclideanEvaluator'>>, '!BaseSegmenter': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.segmenters.BaseSegmenter'>>, '!PrecisionEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.evaluators.rank.precision.PrecisionEvaluator'>>, '!BinaryPbIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.indexers.keyvalue.BinaryPbIndexer'>>, '!DataURIPbIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.indexers.keyvalue.DataURIPbIndexer'>>, '!UniquePbIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.indexers.keyvalue.UniquePbIndexer'>>, '!TextLengthEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.executors.evaluators.text.length.TextLengthEvaluator'>>, '!AudioNormalizer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.crafters.audio.AudioNormalizer.AudioNormalizer'>>, '!AveragePrecisionEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.evaluators.rank.AveragePrecision.AveragePrecisionEvaluator'>>, '!NDCGEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.evaluators.rank.NdcgEvaluator.NDCGEvaluator'>>, '!ImageKerasEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.image.ImageKerasEncoder.ImageKerasEncoder'>>, '!EditDistanceEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.evaluators.text.EditDistanceEvaluator.EditDistanceEvaluator'>>, '!CustomKerasImageEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.image.CustomKerasImageEncoder.CustomKerasImageEncoder'>>, '!NmsLibIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.indexers.vector.NmsLibIndexer.NmsLibIndexer'>>, '!MilvusIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.indexers.vector.MilvusIndexer.MilvusIndexer'>>, '!FaissIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.indexers.vector.FaissIndexer.FaissIndexer'>>, '!JiebaSegmenter': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.segmenters.nlp.JiebaSegmenter.JiebaSegmenter'>>, '!RedisDBIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.indexers.keyvalue.RedisDBIndexer.RedisDBIndexer'>>, '!TirgMultiModalEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.multimodal.TirgMultimodalEncoder.TirgMultiModalEncoder'>>, '!AnnoyIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.indexers.vector.AnnoyIndexer.AnnoyIndexer'>>, '!VSEImageEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.image.VSEImageEncoder.VSEImageEncoder'>>, '!SptagIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.indexers.vector.SptagIndexer.SptagIndexer'>>, '!TextPaddlehubEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.nlp.TextPaddlehubEncoder.TextPaddlehubEncoder'>>, '!DeepSegmenter': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.segmenters.nlp.DeepSegmenter.DeepSegmenter'>>, '!LevelDBIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.indexers.keyvalue.LevelDBIndexer.LevelDBIndexer'>>, '!FarmTextEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.nlp.FarmTextEncoder.FarmTextEncoder'>>, '!FeatureAgglomerationEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.numeric.FeatureAgglomerationEncoder.FeatureAgglomerationEncoder'>>, '!LevenshteinRanker': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.rankers.LevenshteinRanker.LevenshteinRanker'>>, '!MongoDBIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.indexers.keyvalue.MongoDBIndexer.MongoDBIndexer'>>, '!TransformerTorchEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.nlp.TransformerTorchEncoder.TransformerTorchEncoder'>>, '!BleuEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.evaluators.text.BleuEvaluator.BleuEvaluator'>>, '!HammingDistanceEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.evaluators.text.HammingDistanceEvaluator.HammingDistanceEvaluator'>>, '!OneHotTextEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.nlp.OneHotTextEncoder.OneHotTextEncoder'>>, '!VSETextEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.nlp.VSETextEncoder.VSETextEncoder'>>, '!ImageOnnxEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.image.ImageOnnxEncoder.ImageOnnxEncoder'>>, '!AudioReader': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.crafters.audio.AudioReader.AudioReader'>>, '!IncrementalPCAEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.numeric.IncrementalPCAEncoder.IncrementalPCAEncoder'>>, '!AudioMonophoner': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.crafters.audio.AudioMonophoner.AudioMonophoner'>>, '!ImagePaddlehubEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.image.ImagePaddlehubEncoder.ImagePaddlehubEncoder'>>, '!RandomImageCropper': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.segmenters.image.RandomImageCropper.RandomImageCropper'>>, '!MaxRanker': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.rankers.MaxRanker.MaxRanker'>>, '!LaserEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.nlp.LaserEncoder.LaserEncoder'>>, '!TorchObjectDetectionSegmenter': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.segmenters.image.TorchObjectDetectionSegmenter.TorchObjectDetectionSegmenter'>>, '!ArrayStringReader': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.crafters.numeric.ArrayStringReader.ArrayStringReader'>>, '!RandomSparseEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.numeric.RandomSparseEncoder.RandomSparseEncoder'>>, '!Wav2VecSpeechEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.audio.Wav2VecSpeechEncoder.Wav2VecSpeechEncoder'>>, '!TirgImageEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.image.TirgImageEncoder.TirgImageEncoder'>>, '!Sentencizer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.segmenters.nlp.Sentencizer.Sentencizer'>>, '!FiveImageCropper': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.segmenters.image.FiveImageCropper.FiveImageCropper'>>, '!f1ScoreEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.evaluators.rank.f1ScoreEvaluator.f1ScoreEvaluator'>>, '!ChromaPitchEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.audio.MFCCTimbreEncoder.ChromaPitchEncoder'>>, '!TikaExtractor': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.crafters.nlp.TikaExtractor.TikaExtractor'>>, '!SlidingWindowSegmenter': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.segmenters.nlp.SlidingWindowSegmenter.SlidingWindowSegmenter'>>, '!ImageTorchEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.image.ImageTorchEncoder.ImageTorchEncoder'>>, '!VideoPaddleEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.video.VideoPaddleEncoder.VideoPaddleEncoder'>>, '!GleuEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.evaluators.text.GleuEvaluator.GleuEvaluator'>>, '!BigTransferEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.image.BigTransferEncoder.BigTransferEncoder'>>, '!NGTIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.indexers.vector.NGTIndexer.NGTIndexer'>>, '!TfIdfRanker': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.rankers.TfIdfRanker.TfIdfRanker'>>, '!BiMatchRanker': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.rankers.BiMatchRanker.BiMatchRanker'>>, '!ImageFlipper': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.crafters.image.ImageFlipper.ImageFlipper'>>, '!ZarrIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.indexers.vector.ZarrIndexer.ZarrIndexer'>>, '!RougeEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.evaluators.text.RougeEvaluator.RougeEvaluator'>>, '!SimpleAggregateRanker': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.rankers.SimpleAggregateRanker.SimpleAggregateRanker'>>, '!ImageCropper': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.crafters.image.ImageCropper.ImageCropper'>>, '!ScannIndexer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.indexers.vector.ScannIndexer.ScannIndexer'>>, '!RandomGaussianEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.numeric.RandomGaussianEncoder.RandomGaussianEncoder'>>, '!UniversalSentenceEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.nlp.UniversalSentenceEncoder.UniversalSentenceEncoder'>>, '!CompressionVaeEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.numeric.CompressionVaeEncoder.CompressionVaeEncoder'>>, '!BM25Ranker': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.rankers.BM25Ranker.BM25Ranker'>>, '!L1NormEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.evaluators.embedding.L1NormEvaluator.L1NormEvaluator'>>, '!CustomImageTorchEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.image.CustomImageTorchEncoder.CustomImageTorchEncoder'>>, '!MinRanker': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.rankers.MinRanker.MinRanker'>>, '!ArrayBytesReader': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.crafters.numeric.ArrayBytesReader.ArrayBytesReader'>>, '!CenterImageCropper': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.crafters.image.CenterImageCropper.CenterImageCropper'>>, '!ImageNormalizer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.crafters.image.ImageNormalizer.ImageNormalizer'>>, '!TSNEEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.numeric.TSNEEncoder.TSNEEncoder'>>, '!AudioSlicer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.segmenters.audio.AudioSlicer.AudioSlicer'>>, '!MFCCTimbreEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.audio.MFCCTimbreEncoder.MFCCTimbreEncoder'>>, '!VideoTorchEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.video.VideoTorchEncoder.VideoTorchEncoder'>>, '!MinkowskiDistanceEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.evaluators.embedding.MinkowskiDistanceEvaluator.MinkowskiDistanceEvaluator'>>, '!SlidingWindowAudioSlicer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.segmenters.audio.SlidingWindowAudioSlicer.SlidingWindowAudioSlicer'>>, '!ReciprocalRankEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.evaluators.rank.ReciprocalRankEvaluator.ReciprocalRankEvaluator'>>, '!PDFExtractorSegmenter': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.segmenters.nlp.PDFExtractorSegmenter.PDFExtractorSegmenter'>>, '!FlairTextEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.nlp.FlairTextEncoder.FlairTextEncoder'>>, '!SlidingWindowImageCropper': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.segmenters.image.SlidingWindowImageCropper.SlidingWindowImageCropper'>>, '!InfiniteNormEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.evaluators.embedding.InfiniteNormEvaluator.InfiniteNormEvaluator'>>, '!FastICAEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.numeric.FastICAEncoder.FastICAEncoder'>>, '!ImageReader': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.crafters.image.ImageReader.ImageReader'>>, '!JaccardSimilarityEvaluator': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.evaluators.text.JaccardSimilarityEvaluator.JaccardSimilarityEvaluator'>>, '!TransformerTFEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.encoders.nlp.TransformerTFEncoder.TransformerTFEncoder'>>, '!ImageResizer': <bound method JAMLCompatible._from_yaml of <class 'jina.hub.crafters.image.ImageResizer.ImageResizer'>>, '!AsyncFlow': <bound method JAMLCompatible._from_yaml of <class 'jina.flow.asyncio.AsyncFlow'>>, '!MyEncoder': <bound method JAMLCompatible._from_yaml of <class 'jina.helloworld.components.MyEncoder'>>}
jina.jaml.helper.parse_config_source(path, allow_stream=True, allow_yaml_file=True, allow_builtin_resource=True, allow_raw_yaml_content=True, allow_raw_driver_yaml_content=True, allow_class_type=True, allow_dict=True, allow_json=True, *args, **kwargs)[source]

Check if the text or text stream is valid

Return type

Tuple[TextIO, Optional[str]]

Returns

a tuple, the first element is the text stream, the second element is the file path associate to it if available.

jina.jaml.helper.complete_path(path, extra_search_paths=None)[source]
Return type

str

jina.jaml.helper.load_py_modules(d, extra_search_paths=None)[source]

Find ‘py_modules’ in the dict recursively and then load them

Return type

None