"""Interpretability for Sequence Generation Models 🔍."""from.attrimportlist_feature_attribution_methods,list_step_functions,register_step_functionfrom.dataimport(FeatureAttributionOutput,list_aggregation_functions,list_aggregators,merge_attributions,show_attributions,show_granular_attributions,show_token_attributions,)from.modelsimportAttributionModel,list_supported_frameworks,load_model,register_model_configfrom.utils.id_utilsimportexplain
[docs]defget_version()->str:"""Returns the current version of the Inseq library."""try:importpkg_resourcesreturnpkg_resources.get_distribution("inseq").versionexceptpkg_resources.DistributionNotFound:return"unknown"