gesistsa / tokenvars Goto Github PK
View Code? Open in Web Editor NEW๐ฌ Add token-level metadata to `quanteda` (An Experiment)
License: GNU General Public License v3.0
๐ฌ Add token-level metadata to `quanteda` (An Experiment)
License: GNU General Public License v3.0
attr(x, "docvars")$tokenvars_
(rather than attr(x, "tokenvars")
) sounds like a good deal; although quanteda:::is_system()
will not protect it. Also, docvars(x)
will expose it.
But tokens_subset()
, tokens_chunk()
and maybe more will work.
tokennames
(like corpus(docnames)
)tokennames()
tokennames()<-
(going to be difficult)Given gesistsa/quanteda.proximity#35 and quanteda::tokens_*()
will not respect tokenvars
, it would be better to make this a new class for now.
tokens_with_tokenvars
tokens_with_tokenvars.as.tokens()
docvars.tokens_with_tokenvars()
meta.tokens_with_tokenvars()
The functionalities are not completed
tokenvars(x, field) <- value
(list of vectors)tokenvars(x, field, docnames) <- value
(vector / list of vectors)tokenvars(x, field, docnames, tokennames) <- value
(single value / vector / list of vectors)tokenvars(x) <- value
(list of dataframes)I think the parsed result from udpipe
is a good starting point. See also statsmaths/cleanNLP
What can one do with tokenvars
?
tokens_with_tokenvars_swap_tokens(x, field)
- useful for replacing tokens with lemmatokens_with_tokenvars_select_tokens(x, subset)
- Similar to tokens_select
, but using subset
(NSE) like tokens_subset
; useful for e.g. selecting tokens by POSfastmap
?A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.