scramblingbalam / Alta_Real

The python back end of a data product that aims to get at the truthiness of Trump's tweets. It uses PyStruct.EdgeFeatureGraphCRF to leverage the tree structure of twitter replies to gage veracity by the amount of support of denial that his tweets elicit.
MIT License
1 stars 0 forks source link

Create Feature function for ration of capitalized characters #19

Closed scramblingbalam closed 7 years ago

scramblingbalam commented 7 years ago

A quantitative feature

Capital ratio: the ratio of capital letters among all alphabetic characters in the tweet.

scramblingbalam commented 7 years ago

I'm going to have find out how I can represent a ratio so pyStruct can understand it. a decimal will probably work, if not than a number between 0-100