Re: [ngram] Upload files

2017-04-01 Thread Ted Pedersen tpede...@d.umn.edu [ngram]
I think this mail was somehow delayed, but I hope this response is still
useful.

NSP has a  command line interface. In general you specify the output file
first, and the input file second. So if you want to write the output of
count.pl to a file called myoutput.txt, and if your input text is
myinput.txt, you could submit the following command.

count.pl myoutput.txt myinput.txt

Here's an example 

ted@ted-HP-Z210-CMT-Workstation ~ $ cat myinput.txt
hi this is ted speaking how are you today!
I am well.
Today is April 1.

ted@ted-HP-Z210-CMT-Workstation ~ $ count.pl myoutput.txt myinput.txt

ted@ted-HP-Z210-CMT-Workstation ~ $ cat myoutput.txt
18
you<>today<>1 1 1
well<>.<>1 1 2
how<>are<>1 1 1
today<>!<>1 1 1
am<>well<>1 1 1
is<>ted<>1 2 1
I<>am<>1 1 1
is<>April<>1 2 1
ted<>speaking<>1 1 1
.<>Today<>1 1 1
speaking<>how<>1 1 1
hi<>this<>1 1 1
this<>is<>1 1 2
April<>1<>1 1 1
1<>.<>1 1 2
Today<>is<>1 1 2
are<>you<>1 1 1
!<>I<>1 1 1

I hope this helps!
Ted

On Tue, Jan 31, 2017 at 9:54 AM, rocioc...@gmail.com [ngram] <
ngram@yahoogroups.com> wrote:

>
>
> Hello Ted,
>
> Thank you very much for your message, but I still don't know how I can
> take a file as input :( this is being a huge challenge for me, I hope you
> can still give some help with that.
>
> Thanks again, and sorry to disturb you.
> Rocío
> 
>


Re: [ngram] Upload files

2017-04-01 Thread rocioc...@gmail.com [ngram]
Hello Ted, 

Thank you very much for your message, but I still don't know how I can take a 
file as input :( this is being a huge challenge for me, I hope you can still 
give some help with that. 

Thanks again, and sorry to disturb you. 
Rocío 

Re: [ngram] Upload files

2017-01-31 Thread Ted Pedersen tpede...@d.umn.edu [ngram]
Text::NSP has a command line interface that allows you to provide a file or
a folder/directory for input. There are some simple examples shown below
that take a single file as input. That might be a good place to start, just
to make sure everything is working as expected.

http://search.cpan.org/dist/Text-NSP/doc/USAGE.pod

Please let us know as questions arise!

Good luck,
Ted

On Tue, Jan 31, 2017 at 7:52 AM, rocioc...@gmail.com [ngram] <
ngram@yahoogroups.com> wrote:

>
>
> Dear colleages,
>
> I am new in this. I've just installed Perl and Text-NSP, but I have no
> idea how I can supply files to work with. Should I put them in a specific
> folder?
>
> Thanks in advance,
> Rocío
>
> 
>