Skip to content

Task: Function to match construct names between codebook and human coded file #31

Description

@camillastrauss

Description

Make a function that matches the construct names between the uploaded codebook and the human coded file.

I ran into a problem where my human coded file contained constructs that were similar to my codebook constructs, but not the same. I wrote a function that called an LLM to find the most specific codebook construct that matched each human coded construct. The human coded file contained boolean columns for each construct, so the function renamed each of those columns with the matching codebook construct.

Then the function should make a list of column names for which that row has a value of True. This list will be inputted as the construct_col kwarg when load_human_dataframe() is called later.

If a human code does not match any codebook constructs closely, that human code should be printed and should be excluded from the rest of the analysis (or maybe an option for the user to change it before continuing? idk)

Tasks

  • Task 1

Freeform Notes

I know this is confusing so we can work on it together and I can send you the code I've written

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions