xparse: Call script Perl for extracting data from corpus

Description Usage Arguments Details Value See Also Examples

View source: R/parse.R

Description

Call script Perl for extracting data from corpus. Before you run, you must configure a configuration file ini.json in the folder config as: dictionaries, graphs of grammar (Use tools Unitex for creating)...

Usage

1
xparse(json_path = "",verbose=FALSE)

Arguments

json_path

path of configuration file (*.json)

verbose

logical. Should R report extra information on progress? Set to TRUE by the command-line option –verbose.

Details

Input: dictionaries, grammars (build with software Unitex). Output: a result file of every entity and relation

Value

Result file includes:

comp1

data of every entity such as: file1:entity1:$:data1:data2:

comp2

data of every relation of every entity for example: file1:entity1:entity2:$$:data1:data2:1

See Also

xshow display results

Examples

1
  xparse()

Example output

[1] "perl -I \"/usr/local/lib/R/site-library/x.ent/Perl\" \"/usr/local/lib/R/site-library/x.ent/Perl/Main.pl\""
[1] "Please, wait ...."
sh: 1: perl: Permission denied
Garbage collection 16 = 8+4+4 (level 2) ... 
22.7 Mbytes of cons cells used (57%)
5.1 Mbytes of vectors used (50%)
character(0)
attr(,"status")
[1] 126
[1] "Let use functions for viewing the results: xshow(...), xhist(...), xplot(...)...."
Warning message:
running command 'perl -I "/usr/local/lib/R/site-library/x.ent/Perl" "/usr/local/lib/R/site-library/x.ent/Perl/Main.pl"' had status 126 

x.ent documentation built on May 2, 2019, 2:14 p.m.

Related to xparse in x.ent...