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

Sentence level context for kwic #195

Open
cqx931 opened this issue Aug 31, 2021 · 2 comments
Open

Sentence level context for kwic #195

cqx931 opened this issue Aug 31, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@cqx931
Copy link
Collaborator

cqx931 commented Aug 31, 2021

https://rednoise.org/rita/reference/RiTa/kwic/index.html
Currently kwic model only supports specifying the context through number of words. There are ways to work around it and get the result within the current limit, but wouldn't it be helpful to also allow sentence level context in general?

Similar feature request:
quanteda/quanteda#1189

@cqx931 cqx931 added the enhancement New feature or request label Aug 31, 2021
@dhowe
Copy link
Owner

dhowe commented Aug 31, 2021

Good suggestion. Did you have a method in mind for specifying the arguments ? Perhaps something like:

RiTa.kwic(word, opts); -> opts: windowSize=num(default=6), windowType=['words'(default) or 'characters' or 'sentences' ] ?

@cqx931
Copy link
Collaborator Author

cqx931 commented Sep 1, 2021

@dhowe yes, other window types would be good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants