Advertisement
rcompton

Untitled

Mar 28th, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. define langid_command_line `python2.6 langid_command_line.py` ship('/home/ryan/langid_command_line.py');
  2.  
  3. --a tab-delineated file, first column is numeric, second is text
  4. lines = LOAD '/data/text/file0.tab.csv' USING PigStorage() as (ids:chararray, text:chararray);
  5.  
  6. pythonDetect = STREAM lines through langid_command_line AS ( outid:chararray, outlanguage:chararray);
  7.  
  8. STORE pythonDetect INTO '/user/rfcompton/figurepig-dir4/' USING PigStorage();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement