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
- Install Python.
⚠ WARNING:
Don't forget install en_core_web_sm.
Windows:
pip install EnglishAssistantCore & 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 && pip install EnglishAssistantCore & 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.5.tar.gz
(30.8 MB
view hashes)
Built Distribution
Close
Hashes for englishassistantcore-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56dfc7a1002ae3d637af3ef228d083679a516b98ce6fd173bc994e535e672b0f |
|
MD5 | cca8a984b45e60ad168c569ba4d0060b |
|
BLAKE2b-256 | 369f9ea67647b28d78eefe53d1eb497371385a1bc5e282649fe9d2e0a44752b9 |
Close
Hashes for englishassistantcore-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1b4a4c1b5f6079532099e03587b7360de21b5d3b5fe92352be59fa15a874ae0 |
|
MD5 | 7d7ab399746803ed22c1d35a00777a6f |
|
BLAKE2b-256 | 22aaa6df47f0febeb93839e04a5205956238a9ec7ae4f317f09287718dbac7c4 |