Latent Interview Protocol Engineer (LIPE)
Latent Interview Protocol Engineer (LIPE) is a Python utility for mapping the latent structure of interview corpora. It builds on the Interactive Topic Model to recover recurring protocol questions, support qualitative labeling/merging/splitting, and visualize interview flows. It's primary goal is to help researchers effectively navigate and explore their interview corpus.
- Mapping out the underlying structure of a corpus of interviews
- The underlying assumption is that in interviews on a certain topic, there will be an underlying set of key questions that are explored. These questions often follow a certain logic (e.g., if interviewee says X then ask Y else ask Z). We refer to this underlying set of key questions and how they connect as the interview protocol. In more structured interviews, this protocol might be known before hand, but often, interviewers may diverge from it as the interview question molds to the nuances of the phenomena. Other times, there may not even be an explicit protocol to start with. The goal of LIPE is to recover this interview protocol as it is latently expressed across a corpus of interviews.
- Protocol questions are distinct from incidental questions, such as specific follow up questions or clarification questions, in that protocol questions characterize the entire corpus of interviews. As such, we can expect protocol questions to occur in a significant portion of the interviews, even if they are worded slightly differently.
- Whether a question is protocol or incidental also depends on the researcher's conception of what questions are important. This is why it is important for researchers to be able to have full control over what is determined to be a protocol question.
- LIPE provides an interface (building on the Interactive Topic Model (ITM)) for researchers to qualitatively examine, label, merge, and split questions. Because LIPE is a subclass of ITM, you can refer to the ITM examples and documentation for more information.
- Navigating mapped out interview corpora
- Once a corpus of interviews has been mapped out, researchers can use it to navigate the otherwise unwieldy corpus.
- LIPE allows researchers to extract responses to particular protocol questions across the corpus. These responses include responses to any follow up questions.
- LIPE also includes basic exploratory tools for the answers to particular questions including visualizations and topic models of the answers.
- LIPE takes as an input a structured dataframe where each row is a line from an interview. Each line needs to have an interview ID, line ID, and speaker ID in addition to the text for that line.
Quick Start
Installation
pip install lipe
Basic Usage
import pandas as pd
from LIPE import LIPE
lines = pd.read_csv("toy_interviews.csv")
l = LIPE(lines)
l.get_question_info()
Features
- Recover protocol questions from interviewer lines
- Manual labeling, merging, splitting, and archiving of questions
- Extract answers by question (lines, merged, or sentence-level)
- Transition graph construction and visualization
- Answer-level analytics (TF-IDF, word clouds, LDA, embedding plots)
Examples
See example.ipynb for a full workflow using a toy dataset.
Contributing
Contributions are welcome! Please open an issue or pull request.
Support & Contact
For questions, issues, or feature requests, please open an issue on GitHub or contact the maintainer at [zacthinks@outlook.com].
License
MIT License
Metadata
Release files for lipe 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lipe-0.4.0.tar.gz | 587.6 kB | Without provenance | Details for lipe-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lipe-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for lipe-0.4.0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / lipe-0.4.0.tar.gz
| Download URL | lipe-0.4.0.tar.gz |
|---|---|
| Size | 587.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19386bc7ad4a08c5b5ec1aa8c33c9ce2244e19f4aa81d7d82b08d4c708bb0300
|
|
BLAKE2b-256 checksum How to use checksums |
c71d37a9c6bafaeeb7b3a849d242cbf34a6e5e5630af803e7c04b136c89e2d8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Release files / lipe-0.4.0-py3-none-any.whl
| Download URL | lipe-0.4.0-py3-none-any.whl |
|---|---|
| Size | 586.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bdd932fb948d44b97137d4f3b4e6679455fc349961873a69b1534e4b4f4812e
|
|
BLAKE2b-256 checksum How to use checksums |
5393d61e059ac651a05dd34e4b3f76931265dcc44192fd04bdbae6524d76ee28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Security for lipe 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.