View source: R/nlp_translators.R
nlp_sentiment_translate | R Documentation |
It will read the score code that is written as SAS Code extract the language and hostame,
then write an R code equivalent using the SWAT
package.
nlp_sentiment_translate(
in_file = NULL,
out_file = "SentimentScoreCode.R",
zip = TRUE,
in_caslib,
in_castable,
out_caslib,
out_castable_sentiment,
out_castable_matches,
out_castable_features,
key_column,
document_column,
hostname = NULL,
astore = FALSE,
astore_caslib = "casuser",
astore_name = "Sentiment_Astore",
astore_path = "SentimentModel.astore",
copyVars = NULL
)
in_file |
Path to zip/sas file with the score code. |
out_file |
Path to the translated |
zip |
Boolean, if the score code is inside a zip file. Default to |
in_caslib |
caslib name of the input table |
in_castable |
input table name |
out_caslib |
caslib name of the output table |
out_castable_sentiment |
sentiment output table name |
out_castable_matches |
matches output table name, if the argument is not defined the table name will be the same as |
out_castable_features |
features output table name, if the argument is not defined the table name will be the same as |
key_column |
Key column name for unique identifier |
document_column |
text variable column name |
hostname |
|
astore |
If set to |
astore_caslib |
Only used when |
astore_name |
Only used when |
astore_path |
Only used when |
copyVars |
Only used when |
List object with the Rscore code, out castable, out caslib and the written file path.
nlp_sentiment_translate("filepath.zip")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.