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

[Feature] Add length of source and target utterance #28

Open
fusaroli opened this issue May 21, 2018 · 1 comment
Open

[Feature] Add length of source and target utterance #28

fusaroli opened this issue May 21, 2018 · 1 comment

Comments

@fusaroli
Copy link
Collaborator

Specific case study: with parent-child interactions one might wonder whether there are different patterns when excluding shorter or longer utterances. Therefore it'd be useful to add columns with this information. This is probably overkill for most adult-adult conversations, tho'.

@nickduran
Copy link
Owner

To do so, add the following lines of code to the returnMultilevelAlignment function in "calculate_alignmnet"

utterance_length1 = {}
utterance_length2 = {}

 # add number of tokens in each utterance
utterance_length1['utterance_length1'] = len(tok1)
dictionaries_list.append(utterance_length1.copy())   

utterance_length2['utterance_length2'] = len(tok2)
dictionaries_list.append(utterance_length2.copy()) 

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

No branches or pull requests

3 participants