Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Latest commit

 

History

History
17 lines (12 loc) · 674 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 674 Bytes

quanteda.proximity

Please follow the further development of this project here: tokenvars. Please don’t use this software.

The goal of quanteda.proximity is to add proximity vectors into the tokens object of quanteda.

Proximity is measured by the number of tokens away from the keyword. Given a tokenized sentence: [“I”, “wash”, “this”, “apple”] and suppose “eat” is the keyword. The proximity vector is a vector with the same length as the tokenized sentence and the values (using the default settings) are [2, 1, 2, 3].