Most of the script work by taking input from standard in and returning
output to standard out. ie.
  ./parse-en-collins.perl < input.file
if you want to parse just 1 sentence:
  echo "sentence blah blah" | ./parse-en-collins.perl
Reading through the source code for the script, you have to give it the
path of the collins parser, and a program to mxpost.

Unfortunately there no documentation for this script. Once you figure out
how to use it, it would be good if you can write something about how to use
it.


On 7 October 2013 07:22, Rajen Chatterjee <[email protected]>wrote:

> HI,
>    Thanks but I want to know the usage of "parse-en-collins.perl"
>    I have tried 2 ways
>            1) ./parse-en-collins.perl ./test.txt (where test.txt
> contains this line "I am going to school .")
>            2) ./parse-en-collins.perl  "I am going to school ."
>
> In both of this usage I get this o/p:
>
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
> Read 11692 items from /home/rajen/Public/jmx/tagger.project/word.voc
> Read 45 items from /home/rajen/Public/jmx/tagger.project/tag.voc
> Read 42680 items from
> /home/rajen/Public/jmx/tagger.project/tagfeatures.contexts
> Read 42680 contexts, 117558 numFeatures from
> /home/rajen/Public/jmx/tagger.project/tagfeatures.fmap
> Read model /home/rajen/Public/jmx/tagger.project/model :
> numPredictions=45, numParams=117558
> Read tagdict from /home/rajen/Public/jmx/tagger.project/tagdict
> *This is MXPOST (Version 1.0)*
> *Copyright (c) 1997 Adwait Ratnaparkhi*
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> The program halts after this. Why is it halting?
>
> On Sun, Oct 6, 2013 at 4:03 AM, Philipp Koehn <[email protected]> wrote:
> > Hi,
> >
> > the wrapper script calls MXPOST and Collins parser internally, so it
> takes
> > raw tokenized text, not already output from the parser.
> >
> > If you already have parsed data, then you will need to take the script
> > apart and use only the conversion part.
> >
> > -phi
> >
> >
> > On Thu, Oct 3, 2013 at 11:22 AM, Rajen Chatterjee
> > <[email protected]> wrote:
> >>
> >> Hi,
> >>    I want to do syntax annotation for which I have used Collins
> >> Parser, here is the o/p of Collins Parser:
> >> PROB 756 -35.6989 0
> >> TOP -35.6989 S -33.1933 NP -1.15926 NPB -0.869919 NNP 0 Pilgrimage
> >>       VP -28.0845 VBZ 0 is
> >>          PP -21.0829 IN 0 of
> >>             NP -12.3089 NPB -4.28776 JJ 0 utmost
> >>                    NN 0 importance
> >>                PP -4.72756 IN 0 in
> >>                   NP -1.15926 NPB -0.869919 NNP 0 Hinduism
> >> (TOP~is~1~1 (S~is~2~2 (NPB~Pilgrimage~1~1 Pilgrimage/NNP ) (VP~is~2~1
> >> is/VBZ (PP~of~2~1 of/IN (NP~importance~2~1 (NPB~importance~2~2
> >> utmost/JJ importance/NN ) (PP~in~2~1 in/IN (NPB~Hinduism~1~1
> >> Hinduism/NNP ./PUNC. ) ) ) ) ) ) )
> >> TIME 0
> >>
> >>
> >> Now I want to convert it to Moses format for which I am using
> >> parse-en-collins.perl, but I don't know the usage of this script. It
> >> is said that the script "parse-en-collins.perl" takes Collins Parser
> >> output and convert to Moses format but if I pass the above o/p it give
> >> me syntax error. So can I know the usage with a small example.
> >>
> >> Thanks
> >>
> >> --
> >> -Regards,
> >>  Rajen Chatterjee.
> >> _______________________________________________
> >> Moses-support mailing list
> >> [email protected]
> >> http://mailman.mit.edu/mailman/listinfo/moses-support
> >
> >
>
>
>
> --
> -Regards,
>  Rajen Chatterjee.
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
>



-- 
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to