- Install dependencies using pip install -r requirements.txt
- Download the NER model from https://drive.google.com/file/d/1zhmh3r5Jmdj-hvMWCRAAvB3GHklJT-3i/view?usp=sharing
- Extract the folder to PythonFiles/NER/ (Do not change the name if the folder)
- Start application by running the EventCalendarBuilder.py file
- Start the application
- Upon starting the application you are required to give permissions for both Google and Outlook. (Please check your browser tabs)
- Do not close these tabs/ browsers, follow through the process of either allowing/ not allowing the permissions.
- In the event that you accidently close the browser, open up your task manager and end task for EventCalendarBuilder and restart the application.
- If you are running in vscode, simple stop and restart again.
- Insert text into text-box and press submit. (This will trigger the algorithm and model to recognise and extract events from the text)
- This will bring you to the Schedule Page where each extracted event and their details are displayed in each card.
- You can edit these cards and their details to the desired configurations you wish your events to have.
- Select which calendar you wish to schedule your event to. (Default Computer calendar, Google, Outlook)
- Only the events scheduled to Google/ Outlook will be saved and appear under the Manage Events page.
- In the Manage Event page, you can remove already scheduled events individualy or all at once using the 'Clear' button.
- You may check your corresponding calendars to see if the events are successfully scheduled.
- You can also instead directly go to the Schedule Page without any text input by clicking on the 'Go To Schedule' button.
- You are also allowed the creation of new events to schedule under the schedule page by clicking on the 'Create' button.
- On the left-side you have the app toolbar where you may change the various aspects of the application
- A altered wordninja library is used under EdittedPackages/wordninja
- Spacy transformer code has been manually editted to use 'torch.utils._pytree.register_pytree_node' instead of 'torch.utils._pytree._register_pytree_node' in transformer/utils/generic.py
- Store your google credentials file in .\PythonFiles\Calendar\GoogleCalendar\GoogleCalendarAPI and name it 'credentials.json'
- Create a GoogleConstants.py file and update the client secret and client id of azure project in path PythonFiles\Calendar\Outlook.
- Look at OutlookConstants_Sample.py for example
- Place spacy model folder in PythonFiles\NER\model and rename constant in NERConstant in folder PythonFiles\NER\NER_Constants.py