tokens: Print values of cqp attribute

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/s3.R

Description

Get vectors of tokens or types for a cqp attribute.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ntype(attribute, ...)

types(attribute, ...)

nregion(attribute, ...)

regions(attribute, ...)

ntoken(attribute, ...)

tokens(attribute, ...)

 ## S3 method for class 'cqp_attr'
ntype(attribute, ...)
 ## S3 method for class 'cqp_attr'
types(attribute, ...)
 ## S3 method for class 'cqp_attr'
nregion(attribute, ...)
 ## S3 method for class 'cqp_attr'
regions(attribute, ...)
 ## S3 method for class 'cqp_attr'
ntoken(attribute, ...)
 ## S3 method for class 'cqp_attr'
tokens(attribute, ...)

Arguments

attribute

A cqp_attr object, created with $.cqp_corpus.

...

Ignored.

Value

For positional attributes :

For structural attributes :

Author(s)

Bernard Desgraupes - [email protected] - University Paris-10.
Sylvain Loiseau - [email protected] - University Paris-13.

References

http://cwb.sourceforge.net/documentation.php

See Also

$.cqp_corpus.

Examples

1
2
3
4
5
6
7
## Not run: 
c <- corpus("DICKENS");
pos <- c$pos
types(pos);
ntokens(types(pos));

## End(Not run)

PolMine/rcqp.mac documentation built on Dec. 19, 2017, 3:12 a.m.