Skip to main content

To help improve learning a language

Project description

English Assistant Core

This project is related to the implementation of the English Assistant Application, which helps us to learn English as an assistant. And, Also this package has the ability to translate from English to Persian.

Instruction

  1. Install Python.

⚠ WARNING:

After install EnglishAssistantCore. pip install EnglishAssistantCore, don't forget install en_core_web_sm data. pip install "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.6.0/en_core_web_sm-3.6.0-py3-none-any.whl"

  1. Install English Assistant Core and SpaCy-English Core Web Small (en_core_web_sm)

    Windows:

    pip install EnglishAssistantCore & pip install "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.6.0/en_core_web_sm-3.6.0-py3-none-any.whl"
    

    Linux:

    pip3 install EnglishAssistantCore && pip3 install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.6.0/en_core_web_sm-3.6.0-py3-none-any.whl
    

Usage

Set a string as a list.

List = ["Hello"]
#List_String = ["Hello, I am WinCento."]
#List = list(filter(None, re.split(r'\s|\.|,', List_String[0])))

Set the text.

_text = List[0]

Prepare the core.

_core = Core()

Configurate core.

_core.set_voice('en') #language
_core.set_rate(140) #rate

Speak:

_core.speak(_text)

Record:

import os
_core.record(_text,os.path.join(os.path.join(os.path.dirname(__file__)),'output.mp3'))

Tag With SpaCy:

_tag = _core.find_tag_spacy(_text)
_expo = _core.tag_translator_spacy(_tag)
print(_text+" is "+_expo)

Tag With NLTK (optional):

_tag = _core.find_tag_pickle(_text)
_expo = _core.tag_translator_pickle(_tag)
print(_text+" is "+_expo)

Translate To Persian - Online:

_core.set_translator_lang()
_trans = _core.translate_action(_text)
print(_trans)

Pronunciation:

_pron = _core.find_pronunc(list(filter(None, re.split(r'\s|\.|,', _text))))
print(_pron)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

englishassistantcore-1.0.6.tar.gz (30.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

englishassistantcore-1.0.6-py3-none-any.whl (31.5 MB view details)

Uploaded Python 3

File details

Details for the file englishassistantcore-1.0.6.tar.gz.

File metadata

  • Download URL: englishassistantcore-1.0.6.tar.gz
  • Upload date:
  • Size: 30.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for englishassistantcore-1.0.6.tar.gz
Algorithm Hash digest
SHA256 09b7ff7ac1ad81eb630716604fa387ed408ebe170a38b0855436d33380ffa442
MD5 334702ba92dce209f9bbca883da73b23
BLAKE2b-256 eca3db2f286031dd5e91c91a3459a24b444e9f989d54c9e9ce9f92904530c742

See more details on using hashes here.

File details

Details for the file englishassistantcore-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for englishassistantcore-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6fee1c0dd0c49e1ed8fc783236e720261aef3eba046be38ce6c47b3d94837730
MD5 65cf9336e7af3ca44e90b25889d71970
BLAKE2b-256 ee0e4a6d17cf411a9f501867566d1e447ca2847002975c9d740c9a0e4273c1aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page