Saravanan666/pypi-org huggingface dataset:
Package: arcor2-calibration-data
arcor2_calibration_dataChangelogThe format is based onKeep a Changelog,[1.0.0] - 2023-02-14ChangedMarked as a stable version.[0.5.0] - 2022-10-28AddedService exceptions added.ChangedSwitched to Python 3.10, updated dependencies.[0.4.0] - 2021-06-11ChangedClient now raises custom exceptions.[0.3.0] - 2021-05-21Changedestimate_camera_posenow returnsEstimatedPosewhich includes pose and estimation of its precision (quality).[0.2.0] - 2021-02-08ChangedAPI for getting pixel coordinates of markers corners.[0.1.1] - 2020-12-14ChangedBump version to allow reupload to pypi[0.1.0] - 2020-12-14ChangedInitial release of the package containing the client for the Calibration service.
Package: arcor2-dobot
arcor2_dobotEnvironment variablesARCOR2_DOBOT_URL=http://0.0.0.0:5018- by default, the service listens on port 5018.ARCOR2_DOBOT_MODEL=magician- can be set tomagicianorm1.ARCOR2_DOBOT_BIAS_X(as well as_Yand_Z) - sets EEF parameters (offset), default value is 0.ARCOR2_DOBOT_MOCK=1- the service will start in a mock (simulator) mode.Please note that the mock mode is fully functional only formagician. Them1does not have IK/FK implemented yet.ARCOR2_DOBOT_DEBUG=1- turns on debug logging.ChangelogThe format is based onKeep a Changelog,[1.1.1] - 2024-02-20FixedBiases are now converted to millimeters when sent to robot.[1.1.0] - 2024-02-08ChangedAddedARCOR2_DOBOT_BIAS_X,ARCOR2_DOBOT_BIAS_Y,ARCOR2_DOBOT_BIAS_Zenv. variables to set EEF parameters - offset, which is different for different tools.[1.0.0] - 2023-02-14ChangedMarked as a stable version.Health check end-point changed to/healthz/ready.[0.6.0] - 2022-10-28ChangedSwitched to Python 3.10, updated dependencies.[0.5.1] - 2022-09-08FixedDobotGeneralhad wrong ancestor.moveTypedefault value.[0.5.0] - 2022-09-02ChangedBREAKING: Implement new error handling flow. Error codes ofeveryendpoint were replaced with error
types as described in swagger documentation.Updated API description.Model and port are now set using environment variables.AddedNew exception classes[0.4.1] - 2022-02-17AddedSupport for safe movements.Connection to Scene Service Mock needed.New parametersafeforPUT /eef/pose.For JOINT and JUMP movements: add intermediate points with higher z, if there might be a collision.For LINEAR: raise an exception if there might be collision.Debug logging can be turned on by adding-dor settingARCOR2_DOBOT_DEBUG.FixedIn mock-mode,cleanupwas throwingAttributeError.[0.4.0] - 2022-01-25AddedSupport for conveyor belt.ChangedSuction is switched off duringstop.[0.3.0] - 2021-10-25ChangedNew environment variableARCOR2_DOBOT_MOCKto start the service in a mock mode.Classes updated to matchRobot(new argumentinclude_gripper).HandleDobotApiexceptions to produce nice error messages.Use HTTP code 204 instead of 200 where it makes sense.[0.2.3] - 2021-05-21FixedEEF orientation.State controller paths.[0.2.2] - 2021-03-17FixedSuction offset for M1 adjusted[0.2.1] - 2021-03-15FixedDobot axis Z is in mmAdded fixed offset for suction[0.2.0] - 2021-03-03ChangedIntegration ofpydobotlibrary (own modified fork).API for hand teaching mode.[0.1.0] - 2021-02-08ChangedInitial release of the Dobot service.
Package: arcor2-execution-data
arcor2_execution_dataChangelogThe format is based onKeep a Changelog,[1.1.0] - 2024-01-03ChangedDependency onarcor2_runtime~=1.1.0.[1.0.0] - 2023-02-14ChangedMarked as a stable version.[0.16.0] - 2022-10-28ChangedSwitched to Python 3.10, updated dependencies.[0.15.0] - 2022-01-25ChangedBreaking change of WebSockets API (ActionStateBeforeevent).Switched to Python 3.9, updated dependencies.[0.14.1] - 2021-11-08FixedFixed mutual dependency betweenarcor2_execution_dataandarcor2_runtime(package.pymoved toarcor2_runtime).[0.14.0] - 2021-10-25ChangedStuff needed by the main script moved toarcor2_runtime.New RPCStepAction, debugging-related arguments added toRunPackage.[0.13.0] - 2021-08-05ChangedResourcescan now handleCollisionObject.[0.12.0] - 2021-07-29ChangedPropertydescriptionadded toProjectMeta.[0.11.0] - 2021-06-14ChangedModulespackageandresourcesmoved here fromarcor2package.Resourcesclass now do not have any parameters (it used to haveproject_id).FixedInResources/__exit__, collision models were deleted before callingcleanupfor each object.[0.10.0] - 2021-02-08ChangedPackageStateRPC removed.[0.9.0] - 2020-10-22ChangedPackageSummarynow contains optionalproject_metaproperty which may hold basic information about the project embedded in the execution package.[0.8.1] - 2020-10-19ChangedARCOR2 dependency updated[0.8.0] - 2020-09-24ChangedThe first release of the separated package.
Package: arcor2-execution-rest-proxy
arcor2_execution_rest_proxyEnvironment variablesARCOR2_EXECUTION_PROXY_PORT=5009- by default, the service listens on port 5009.ARCOR2_EXECUTION_PROXY_DB_PATH=/tmp- by default, the service stores its files in the/tmpfolder.ARCOR2_REST_API_DEBUG=1- turns on Flask debugging (logs each endpoint call).ChangelogThe format is based onKeep a Changelog,[1.0.0] - 2023-02-14ChangedMarked as a stable version.AddedHealth check end-point/healthz/ready.[0.18.0] - 2022-10-28ChangedSwitched to Python 3.10, updated dependencies.[0.17.1] - 2022-08-02ChangedUpdate of swagger definition for selected endpoints.[0.17.0] - 2022-07-11ChangedBREAKING: Implement new error handling flow. Error codes ofeveryendpoint were replaced with error
types as described in swagger documentation.BREAKING:/packages/executioninfoendpoint changed to/packages/state. Tests updated.Update of API description.Change of service name.AddedNew API exceptions added.SummaryProject,SummaryPackage,ExecutionInfo,Tokenfields description.[0.16.0] - 2022-01-25AddedExecutionInfowas extended with an optional propertyactionPointIds.ChangedSwitched to Python 3.9, updated dependencies.[0.15.1] - 2021-11-08FixedFixed mutual dependency betweenarcor2_execution_dataandarcor2_runtime(package.pymoved toarcor2_runtime).[0.15.0] - 2021-11-02ChangedAdded API for setting and getting breakpoints.Breakpoints are cleared when package is normally started or deleted.Breakpoints can be only set when there is no running package.API version changed to 0.8.0.[0.14.0] - 2021-10-25ChangedSupport for debugging.New methodsPUT /packages/{packageId}/debugandPUT /packages/step.The script can now be started in paused state.Breakpoints can be set on action points.The paused script can be stepped to the following action.[0.13.2] - 2021-09-02ChangedAdded EXPOSE to dockerfile[0.13.1] - 2021-08-04FixedAPI version was not updated.[0.13.0] - 2021-07-29ChangedPropertydescriptionadded toSummaryProject.If more exceptions happen, they are combined intoexceptionMessage.[0.12.0] - 2021-06-11ChangedOpenAPI definition updated.[0.11.0] - 2021-05-21ChangedUpdate of dependencies.[0.10.0] - 2021-03-30ChangedImplements Execution API 0.5.0.Execution statePendingwas added, which is reported when long-running operation takes place (e.g. pause a package).[0.9.0] - 2021-02-08ChangedPart of the code refactored intoarcor2/flask.py.Update of 3rd party dependencies.[0.8.3] - 2020-12-14FixedError code and message when attempting to delete a non-existent execution package.[0.8.2] - 2020-10-22ChangedImplements Execution API 0.4.0.ProjectNameproperty added toSummaryPackagemodel.[0.8.1] - 2020-10-19ChangedARCOR2 dependency updated[0.8.0] - 2020-09-24ChangedThe first release of the separated package.API version is now hardcoded (0.3.0 at the moment).Tokens controller added.Tokens as saved in DB in directory specified byARCOR2_EXECUTION_PROXY_DB_PATH.Added wait until the Execution service is up.
Package: arcor2-fanuc
arcor2_fanucFor the server to work, there must be a runningMAPPDK driveron the robot. So far, it has been tested with LRMate 200iD/7L (for which there is also a model, adapted fromROS Industrial), but it should work with any robot driven by the R-30iB Mate Plus Controller.Environment variablesARCOR2_FANUC_SERVICE_NAME- set the service name ("Fanuc Service" by default).ARCOR2_FANUC_SERVICE_URL=http://0.0.0.0:5027- by default, the service listens on port 5027.ARCOR2_FANUC_ROBOT_HOST- ip address of the robot ("192.168.104.140" by default).ARCOR2_FANUC_ROBOT_PORT- port of the MAPPDK server (18735 by default).ARCOR2_FANUC_EEF_DO_NUM- digital output which controls the end effector (1 by default).ARCOR2_FANUC_MAX_VELOCITY- max TCP velocity (mm/s, 6000 by default).ARCOR2_FANUC_MAX_ACCELERATION- max TCP acceleration (mm/s-2, 100 by default).ARCOR2_FANUC_Z_AXIS_OFFSET- offset between base and origin of robot's world coordinate system, which is at J2 (330 by default).ARCOR2_FANUC_DEBUG=1- turns on debug logging.ChangelogThe format is based onKeep a Changelog,[0.3.0] - 2022-10-28ChangedSwitched to Python 3.10, updated dependencies.[0.2.0] - WIPChangedBREAKING: Implement new error handling flow. Error codes ofeveryendpoint were replaced with error
types as described in swagger documentation.Update API description.AddedNew exception classes[0.1.0] - 2022-05-23AddedInitial release of the Fanuc Service - REST API based onfanucpylibrary.The package also contains universal ObjectType and a URDF model for LRMate 200iD/7L (adapted from ROS Industrial).
Package: arcor2-fit-demo
arcor2_fit_demoChangelogThe format is based onKeep a Changelog,[1.2.0] - 2023-07-20ChangedKinectAzureObjectType is now imported fromsrc/python/arcor2_kinect_azure_data/object_types/kinect_azure.py.[1.1.0] - 2023-03-07ChangedCompatibility witharcor2_kinect_azure:0.6.0.Default url for Kinect.[1.0.0] - 2023-02-14ChangedMarked as a stable version.[0.11.0] - 2022-10-28ChangedSwitched to Python 3.10, updated dependencies.[0.10.1] - 2022-09-15FixedDefault url was missing forConveyorBelt.[0.10.0] - 2022-09-02ChangedNo need to enter the Dobot model/port - both are now set when starting the service.[0.9.1] - 2022-08-29ChangedFixed upload of URDF files (arcor2).[0.9.0] - 2022-02-17Changedpickandplaceactions now havesafe_approach,safe_pick/safe_placeandvelocityparameters.[0.8.0] - 2022-01-25AddedSupport for Dobot conveyor belt.There is a new Object TypeConveyorBelt.Theurlin settings should point to the Dobot service (same url as forDobotMagician).[0.7.0] - 2021-10-25ChangedChanges regarding updated signatures ofRobotmethods (__init__,move_to_pose,robot_joints).Kinect mesh fixed (some empty geometries removed).Dobot Magician materials removed from URDF.[0.6.1] - 2021-07-29ChangedDefault values for url fields of object parameters.Added docstrings to some actions.Added mesh for KinectAzure.[0.6.0] - 2021-05-21ChangedObject types now use a mixin to share the common code.FixedState controller paths are now consistent.[0.5.2] - 2021-03-30FixedDobot M1 does not have IK/FK so far[0.5.1] - 2021-03-15FixedSignatures of some robot methods.Added temporal workaround toAbstractDobot/pick.[0.5.0] - 2021-03-03Changedpick/placeactions.Hand teaching mode.During initialization, stop the Dobot service if already started.Raise exception onsafe=True(not supported).[0.4.0] - 2021-02-08ChangedObjectTypes are now just proxies to the Dobot service.Added the mandatoryanparameter to all actions.FixedDobot M1 model (rotation of parts).[0.3.0] - 2020-12-14ChangedVarious fixes regardingDobotMagicianandDobotM1.KinectAzureObjectType was added.[0.2.1] - 2020-10-19ChangedARCOR2 dependency updated[0.2.0] - 2020-09-24ChangedPackage is now part of the arcor2 monorepo.Support for Dobot M1.Improved handling of exceptions.
Package: arcor2-kinali
arcor2_kinaliChangelogThe format is based onKeep a Changelog,[0.15.0] - 2021-07-29ChangedImplementSearchservice version0.11.0ImplementRobotservice version0.12.0All service now useconfigurationIdinstead ofconfigId[0.14.0] - 2021-06-11ChangedImplementInteractionservice version0.4.0Update services version[0.13.1] - 2021-05-21FixedAubohad wrong XML child names for inverse kinematics call[0.13.0] - 2021-04-21ChangedClassAbstractRobotupdated for Robot 0.10.0ClassAubo(inverse_kinematics) updated for Robot 0.11.0[0.12.1] - 2021-03-15FixedGetting suction IDs was broken.Fixed signatures of some robot methods.ChangedExample scripts were updated with id-related changes.[0.12.0] - 2021-03-03ChangedParametersafeadded to theRobotinterface.Added an example usingRestHttpException.FixedSimaticrobot was missingmove_to_joints(moved toAbstractRobot).[0.11.1] - 2021-02-09ChangedAdd Ict service 0.1.0[0.11.0] - 2021-02-08ChangedAdded the mandatoryanparameter to all actions.FixedInvalid url inmove_relative_joints.[0.10.0] - 2020-12-14ChangedClassKinaliRobotdivided intoAuboandSimatic.Added example of the main script usingResourcesclass.Added URDF model forAubo.Updated to for Robot 0.9.0, Search 0.7.0, Barcode 0.4.0.[0.9.2] - 2020-10-30ChangedCall topatch_object_actionsadded to the example script.Slight change ofinverse_kinematicsmethod signature (start_jointsandavoid_collisionsnow have default values).[0.9.1] - 2020-10-19ChangedARCOR2 dependency updated[0.9.0] - 2020-10-16ChangedClients updated to use rewrittenrestmodule.KinaliRobot updated for Robot 0.8.0 (IK/FK methods added).Barcode, Robot and Search now have pose while Interaction and Statistic do not.FixedInteraction/add_dialog now returns the selected option.Barcode: obsolete methodactive_scannersremoved.[0.8.0] - 2020-09-24ChangedPackage is now part of the arcor2 monorepo.Update of ObjectTypes.
Package: arcor2-kinect-azure
Kinect Azure ServiceUsage InstructionsBy default, the service runs on port 5016.This can be changed by settingARCOR2_KINECT_AZURE_URL.Kinect SDK has to be installed beforehand (sudo ./build-support/install_kinect_prerequisites.sh).You may need to run following commands when using the real sensor to set permissions:sudowgethttps://raw.githubusercontent.com/microsoft/Azure-Kinect-Sensor-SDK/develop/scripts/99-k4a.rules-P/etc/udev/rules.d/
sudoudevadmcontrol--reload-rules&&udevadmtriggerEnvironment variablesARCOR2_KINECT_AZURE_URL=http://localhost:5016- by default, the service listens on port 5016.ARCOR2_KINECT_AZURE_MOCK=1- the service will start in a mock (simulator) mode.ARCOR2_REST_API_DEBUG=1- turns on Flask debugging (logs each endpoint call).ChangelogThe format is based onKeep a Changelog,[0.6.0] - 2023-03-06ChangedHealth check end-point at/healthz/ready.Requiresposein the body ofGET /state/start.AddedNew endpointGET /state/pose.[0.5.0] - 2022-10-28ChangedBREAKING: Implement new error handling flow. Error codes ofeveryendpoint were replaced with error
types as described in swagger documentation.Changed service name.Switched to Python 3.10, updated dependencies.[0.4.0] - 2021-10-25ChangedNew environment variableARCOR2_KINECT_AZURE_MOCK.FixedDepth file was not packaged (used in mock mode).[0.3.0] - 2021-05-21ChangedLazy import ofpyk4a- mock can run without it.[0.2.0] - 2021-02-08ChangedMock now sends real images.Part of the code refactored intoarcor2/flask.py.[0.1.0] - 2020-12-14ChangedInitial release of the package.
Package: arcor2-logger
arcor2_loggerThe service provides logging capabilities through the network. Logging-related methods are added to ObjectTypes using a mixin class.Messages are sent using the websockets protocol.Calls tolog_methods are non-blocking.Example usagefromtypingimportOptionalfromarcor2.object_types.abstractimportGeneric,Settingstry:from.logging_mixinimportLoggingMixin# this is used within an execution packageexceptImportError:fromarcor2_logger.object_types.logging_mixinimportLoggingMixin# this is used during developmentclassMyObject(LoggingMixin,Generic):_ABSTRACT=Falsedef__init__(self,obj_id:str,name:str,settings:Optional[Settings]=None)->None:super().__init__(obj_id,name,settings)self.logger=self.get_logger()self.logger.info("Initialized.")Environment variablesARCOR2_LOGGER_URL=ws://0.0.0.0:8765- by default, the service listens on port 8765.ARCOR2_LOGGER_LEVEL=info- by default, messages from objects with levelinfoand higher are logged.Other possible values arewarning,erroranddebug.ARCOR2_LOGGER_DEBUG=1- switches logger to theDEBUGlevel.ARCOR2_LOGGER_ASYNCIO_DEBUG=1- turns onasynciodebug output (helpful to debug problems related to concurrency).
Package: arcor2-mocks
arcor2_mocksMocks for services developed by Kinali.Environment variablesARCOR2_PROJECT_SERVICE_MOCK_PORT=5012- by default, the Project mock listens on port 5012.ARCOR2_REST_API_DEBUG=1- turns on Flask debugging (logs each endpoint call).ChangelogThe format is based onKeep a Changelog,[1.0.0] - 2023-02-14ChangedMarked as a stable version.REST API updated to match Project 1.0.0-rc.1.AddedHealth check end-point/healthz/readyto match Project 0.23.0 and Asset 0.6.0.[0.20.0] - 2022-10-28ChangedSwitched to Python 3.10, updated dependencies.[0.19.0] - 2022-09-02ChangedBREAKING: Scene service was moved intoarcor2_scene.[0.18.0] - 2022-08-17ChangedBREAKING: Implement new error handling flow. Error codes ofeveryendpoint were replaced with error
types as described in swagger documentation.BREAKING: Update API to match new convention.AddedNew exception classes[0.17.1] - 2022-02-17AddedSimple collision checking on Scene Service Mock using Open3D ray-casting.Checks whether there is collision between two points.So far works only for primitive models.Amount of (safety) inflation (in meters) can be controlled by-iargument or byARCOR2_SCENE_INFLATION. Default value is 0.01.Debug logging can be turned on by adding-dor settingARCOR2_SCENE_DEBUG.[0.17.0] - 2021-10-25ChangedDependency onarcor2==0.21.0.FixedHandling ofcreatedproperty.[0.16.0] - 2021-07-29ChangedCompatibility with Project service 0.10.0.Compatibility with Scene service 0.5.0.[0.15.0] - 2021-06-11ChangedUpdated to match API of Project service 0.8.0.[0.14.0] - 2021-05-21ChangedUpdated to match API of Project service 0.7.0.[0.13.0] - 2021-04-20FixedMethods from System controller missed OpenAPI definition.ChangedConfigurable delay on start/stop.Scene mock can simulate that start and stop take some time.Mean time can be set usingARCOR2_MOCK_SCENE_DELAY_MEAN.ARCOR2_MOCK_SCENE_DELAY_SIGMAsets the sigma of normal distribution.[0.12.0] - 2021-03-03ChangedMethods to store/get mesh files were added to the mock Project.[0.11.0] - 2021-02-08ChangedPart of the code refactored intoarcor2/flask.py.Update of 3rd party dependencies.[0.10.0] - 2020-12-14ChangedScene service mock updated to match Scene 0.4.0.[0.9.1] - 2020-10-19ChangedARCOR2 dependency updated[0.9.0] - 2020-10-16Scene Service Mock updated to match Scene Service version 0.3.0.[0.8.0] - 2020-09-23ChangedMocks updated to match Project 0.4.0 and Scene 0.2.0.
Package: arcor2-runtime
arcor2_runtimeThe stuff that is required by the main script.Environment variablesARCOR2_STREAMING_PERIOD=0.1- controls the period of streaming a robot's EEF poses and joints.ChangelogThe format is based onKeep a Changelog,[1.1.0] - 2024-01-03ChangedParameterinteract_with_scene_serviceadded to theResourcesclass.[1.0.0] - 2023-02-14ChangedResourcesException-__context__is now set to a first exception occurred during script initialization.All exceptions that occurred during parallel initialization are still available in theexceptionsarray.AddedResourcesclass has ascene_start_timeoutargument which is handed over to the Scene client.[0.5.0] - 2022-12-12ChangedDependency onarcor2~=0.26.0.[0.4.0] - 2022-10-28ChangedSwitched to Python 3.10, updated dependencies.[0.3.2] - 2022-08-17ChangedUpdate of scene client.[0.3.1] - 2022-08-15ChangedUpdated dependencies to match the releasedarcor2package.[0.3.0] - 2022-01-25Changed@actiondecorator updated to work with updatedActionStateBefore, where all properties are now optional.Moreover, it now sends IDs of action points, that are used as parameters of actions, which is especially useful for projects without actions (actions are hand-coded).Switched to Python 3.9, updated dependencies.[0.2.2] - 2021-11-15FixedPropagate error messages and related underlying exceptions when the initialization of objects fails.[0.2.1] - 2021-11-08FixedFixed mutual dependency betweenarcor2_execution_dataandarcor2_runtime(package.pymoved toarcor2_runtime).[0.2.0] - 2021-11-01ChangedThere is a new parameterapply_action_mappingallowing to disable application of action mapping.This is useful for cases when actions are not defined in project.json.[0.1.0] - 2021-10-25ChangedThe first release of the package.
Package: arcor2-scene
arcor2_sceneARCOR2 Scene service has similar functionality to Kinali's Scene service (in version 0.8.0), but not all endpoints are implemented, and on the other hand, there are some additional, specific ones.Environment variablesARCOR2_SCENE_SERVICE_PORT=5013- by default, the Scene mock listens on port 5013.ARCOR2_REST_API_DEBUG=1- turns on Flask debugging (logs each endpoint call).ARCOR2_SCENE_DEBUG=1- turns on debug logging.ARCOR2_SCENE_INFLATION=0.01- controls how much in meters are collision models inflated (for simple collision checking).ARCOR2_SCENE_DELAY_MEAN=0andARCOR2_SCENE_DELAY_SIGMA=0can be used to simulate long-lasting startup of the scene (with some randomness). May be useful for debugging.ChangelogThe format is based onKeep a Changelog,[1.0.0] - 2023-02-14ChangedMarked as a stable version.Health check end-point changed to/healthz/ready.[0.2.0] - 2022-10-28ChangedSwitched to Python 3.10, updated dependencies.[0.1.1] - 2022-09-08FixedSceneGeneralexception had wrong ancestor.[0.1.0] - 2022-09-02AddedScene service moved out ofarcor2_mocksinto a separate package.
Package: arcor2-yumi
ARCOR2 YuMi DemoBased ongalou/yumipy, with a stripped-of support for ROS, adapted to Python 3.8, with added type annotations, etc. The URDF model comes fromOrebroUniversity/yumirepository.Tested with RobotWare 6.12.02 and SmartGripper 3.56.FunctionalityLimitationsIdeas for further development / improvements:UsePOST /rw/rapid/modules/MainModule?task=T_ROB1&action=set-module-textto update RAPID during initialization.It would be necessary to somehow assign files on the project service (RAPID) to the ObjectType.ChangelogThe format is based onKeep a Changelog,[0.2.0] - 2022-10-28ChangedSwitched to Python 3.10, updated dependencies.[0.1.0] - 2021-10-25ChangedThe first working version with basic functionality.
Package: ar-corrector
DescriptionSimple library to check the spelling of arabic sentences. This library uses a vocabulary that consists of +500K words, and uses 1-edit_distance and 2-edit_distance to correct the misspelled words. It also uses 1-ngram language model to correct the words depending on the previous context.Installationpip install ar-correctorUsageCorrect word spellingfromar_corrector.correctorimportCorrectorcorr=Corrector()corr.spell_correct('بختب')# return 5 corrections with top frequencies# [('بكتب', 61), ('برتب', 22), ('بختم', 21), ('بختي', 9), ('بخت', 7)]corr.spell_correct('بختب',2)# return 2 corrections with top frequencies# [('بكتب', 61), ('برتب', 22),]corr.spell_correct('بختب',1)# return 1 correction with top frequency# [('بكتب', 61)]corr.spell_correct('لتمشتلميتلكب',4)# return the same word# لتمشتلميتلكبcorr.spell_correct('من')# return true# TrueCorrect word spelling using the contextfromar_corrector.correctorimportCorrectorcorr=Corrector()sent='أكدت قواءص التمذد في تشاد أنها تواضضل طريقها للعاحمة'print(corr.contextual_correct(sent))#أكدت قوات التمرد في تشاد أنها تواصل طريقها للعاصمةsent='اتتنتهى حدث آبل المنتظو بالإعلاخ عن مموعة من المنتجات'print(corr.contextual_correct(sent))#انتهى حدث آبل المنتظر الإعلان عن مجموعة من المنتجات