Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convokit 3.0 Mega Pull Request #199

Merged
merged 19 commits into from
Jul 25, 2023

Conversation

seanzhangkx8
Copy link
Collaborator

Description

This is the Mega PR for ConvoKit 3.0 Release Updates.
let's do it in chronological order

Fix coordination.py with use of mutability of metadata - bug fix
Major immutability of metadata implementation, with a deepcopy of metadata field returned upon accesses of metadata fields. This prevent all potential modification to metadata fields from affecting the actual storage, same as making metadata fields immutable. The purpose of this is to align behavior between MEM mode to DB mode, as DB mode has the issue with mutation to metadata fields not able to be updated to database. - major update
Documentation updates for version 3.0 - documentation update
Pairer with pair_mode set to 'maximize' leads to error when pairing function returns integer (TypeError: unsupported operand type(s) for +: 'int' and 'str' ). We now implement to cast all returned value of pairing function to string when pair_mode is 'maximize', so that fix the bug, and as the case when it will not work is very rare (casting custom type to string etc, handled explicitly), this method would generally work - bug fix

Motivation and Context

The major update for ConvoKit 3.0 is to introduce DB mode, with the support of MongoDB backend. Thus, we are able to work with large scale corpus in a more RAM friendly and stable fashion. To support the new version, immutability of metadata is introduced to align the behavior of two modes. For more detail, view the updated documentation.

How has this been tested?

Run through all tests, example notebooks with no error found.

@cristiandnm cristiandnm merged commit dbca34f into CornellNLP:master Jul 25, 2023
@cristiandnm
Copy link
Contributor

Completed mega-pull to switch to 3.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants