ryanjgallagher / shifterator

Interpretable data visualizations for understanding how texts differ at the word level
Apache License 2.0
273 stars 29 forks source link

multiple shift #31

Closed keyuchen21 closed 2 years ago

keyuchen21 commented 2 years ago

is that possible to do multiple shift? For example I have a dataset of 2010 - 2022. Is there anyway I can check the word shift from 2010 to 2022 year by year?

ryanjgallagher commented 2 years ago

I'm not sure if I quite follow what you're looking to do. If you have some reference text, and you want to compare the text from each year from 2010 to 2022, you can make a Shift object for each year and compute the word shift graph one-by-one. There's no way to compare multiple texts at the same time.

If you need to stitch together different graphs, the get_shift_graph function returns a Matplotlib ax that you should be able to use.

keyuchen21 commented 2 years ago

thanks! that's very helpful!!!!!