pnb / metacognitive_phrase_detector

Automatic detection of metacognitive phrases in bodies of text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Metacognitive phrase detector

This project is the result of research on automatic detection of metacognition (thinking about thinking) from user-generated text. If you would like to learn more, see this paper:

Huang, E., Valdiviejas, H., & Bosch, N. (2019). I’m sure! Automatic detection of metacognition in online course discussion forums. Proceedings of the 8th International Conference on Affective Computing and Intelligent Interaction (ACII 2019), 241–247. https://doi.org/10.1109/ACII.2019.8925506

Note that the web-based interface is no longer available, though the Python interface (this repository) is.

Installation

Clone this repository to your project directory, so that your script that uses this package is in the level of the tree. For example, you may create a script called my_test.py and set up your project like this:

my_project/my_test.py
my_project/metacognitive_phrase_detector/*

Example usage

from metacognitive_phrase_detector.algorithm import analyze_text

text = "Although your estimate doesn't agree with mine of 20, I believe you bring up a very valid point. I had not even considered that the star formation rate was much faster long ago than it is now. Many of the stars in the galaxy that we can see today could very well have been born billions of years ago. It's a smart idea to consider not just rely on what we can see in the sky, but on the changes in the galaxy that occur. Although with this new information I do not know what my new estimate would be, but I believe that there is undoubtedly merit in your reasoning and estimate"

mc_phrases, annotated_post = analyze_text(text)
print(annotated_post)
for mcp in mc_phrases:
    print(mcp.phrase, mcp.connotation)

About

Automatic detection of metacognitive phrases in bodies of text

License:MIT License


Languages

Language:Python 100.0%