Install your first Python package using pip within a virtual environment,
Run a test program to verify the installation and environment configuration, and
Commit your changes and push them to your GitHub repository.
This will ensure your development workspace is properly configured for this course.
Package Installation
Once you set up the :
Open Terminal in PyCharm:
Click the Terminal icon () at the bottom left, or
Select the [View] > [Tool Windows] > [Terminal] menu).
Test Program
Create the project structure:
Create a new Python package called in your nlp-essentials directory.
Inside src, create a package.
Commit & Push
Create a file:
Create the file in your nlp-essentials root directory
Add the following lines to exclude unnecessary files:
Submission
Submit the URL of your GitHub repository to Canvas.
Task 2: Project Ideas
Share your team project concept by filling out the form in Canvas (about 100-150 words). Your description will be posted on the page to help classmates discover shared interests and form teams.
from elit_tokenizer import EnglishTokenizer
if __name__ == '__main__':
text = 'Emory NLP is a research lab in Atlanta, GA. It was founded by Jinho D. Choi in 2014. Dr. Choi is a professor at Emory University.'
tokenizer = EnglishTokenizer()
sentence = tokenizer.decode(text)
print(sentence.tokens)
print(sentence.offsets)