This is another technique:
Producing:
All the strings are placed into a scalar, with the separator being a newline, then the scalar is split into the array.
Because there is some processing, you could also place quotes around the strings later, saving some keystrokes on entry. However, then you would lose the flexibility of placing any characters of your choice around the strings -- I used both single and double quotes above, for example.
It is convenient if your sentences are short. If you had long sequences, you'd need to invent a continuation character to allow lines to be joined ... cheers, drl
I have to add a variable value to an array, something like this:
......
@my_array_name = $value_of_this_variable;
This doesnt seem to work, any ideas why?
Thanks! (4 Replies)
hi every body,
i donot know how to assign a array varible with a file
see i having file
more file
property1 Name
property2 Address
the above two line are tab Space seperated between the property and its value
i want to seperate it and assign to... (1 Reply)
Hi ,
i have a text file that contain a story
How do i extract the out all the sentences that contain the word Mon. in C++
I only want to show those sentences that contain the word mon
eg.
Monkey on a tree.
Rabbit jumping around the tree.
I am very rich, I have lots of money.
Today... (1 Reply)
Hi,
I have an array with 3 words in it and i have to match all the array contents and display the exact matched sentence i.e all 3 words should match with the sentence.
Here are sentences.
$arr1="Our data suggests that epithelial shape and growth control are unequally affected depending... (5 Replies)
I have an array as follows:
Space: ABC
Name: def
Age: 22
Type: new
Name: fgh
Age: 34
Type: old
Space: XYZ
Name: pqr
Age: 44
Type: new
:
:
How can I separate the array with elements starting from Space:ABC until Space: XYZ & put them in a different array & so on... (4 Replies)
Hi All,
I'm writing a nagios check that will see if our ldap servers are in sync...
I got the status data into a nested array, I would like to search key of each array and if "OK" is NOT present, echo other key=>values in the current array to a variable
so...eg...let take the single array... (1 Reply)
I wrote a simply perl that searched a file for a particualr value and if it found it, rite it and the next three lines to a file. Now I have been asked to check those next three lines for a different value and only write those lines if it finds the second value.
I was thinking the best way to... (1 Reply)
I know that
@food = %fruit;
Works. But how do I assign %fruit and %veggies to @food ? (2 Replies)
Discussion started by: popeye
2 Replies
LEARN ABOUT DEBIAN
malaga
MALAGA(1) Malaga quick reference MALAGA(1)NAME
malaga - natural-language word and sentence analysis
SYNOPSIS
malaga [-morphology|-syntax] [-quoted] [-input input] project-file
DESCRIPTION
Malaga is a development environment for natural-language grammars based on the Left-Associative Grammar formalism. Malaga grammars can be
used for automatic morphological and/or syntactic analysis.
The program malaga is Malaga's user interface for analysing word forms and sentences, displaying the results and finding bugs in a grammar.
malaga requires the name of a language-dependent project-file as a command-line argument.
If no command line options are given, malaga starts in interactive mode, and you can enter commands. If you are not sure about the name of
a command, use the command help to get an overview of all malaga commands.
If you want to quit malaga, enter the command quit.
See info Malaga for details.
OPTIONS
-h[elp]
Print a help text about malaga's command line arguments and exit.
-i[nput] input
Analyse a single word or sentence given as command line argument (only valid in morphology or syntax mode).
-m[orphology]
Start malaga in morphology mode. In this mode word forms are read in from the standard input stream and analysed (one word form per
line). The analysis result are written to the standard output stream.
-q[uoted]
The input lines to be analysed are quoted (only valid in morphology or syntax mode).
-s[yntax]
Start malaga in syntax mode. In this mode sentences are read in from the standard input stream and analysed (one sentence per
line). The analysis result is written to the standard output stream.
-v[ersion]
Print malaga's version number and exit.
AUTHORS
Malaga was written by Bjoern Beutel. Numerous other people distributed to Malaga. This manpage was originally written for the Debian dis-
tribution by Antti-Juhani Kaijanaho.
SEE ALSO mallex(1), malmake(1), malrul(1), malshow(1), malsym(1)
``Malaga 7, User's and Programmer's Manual''. Available in Debian systems via info Malaga, and, if the malaga-doc package is installed, in
various formats (DVI, Postscript, PDF, HTML) under /usr/share/doc/malaga-doc/.
Malaga 26 September 2006 MALAGA(1)