text-parsing Questions

6

Solved

I want to parse a currency from a string in PHP, I've had a look at number formatter but haven't got PHP 5.3 or the ability to add extensions. The currency will only exist once per string, and wil...
Beeline asked 20/2, 2011 at 20:34

6

Solved

I would like to convert a string of delimited dimension values into floating numbers. For example 152.15 x 12.34 x 11mm into 152.15, 12.34 and 11 and store in an array such that: $dim[0] = 152.15...

3

Solved

How can I parse this string on a javascript, var string = "http://www.facebook.com/photo.php?fbid=322916384419110&set=a.265956512115091.68575.100001022542275&type=1"; I just want to get t...

18

I am trying to parse a time expression string into an associative array with full-word keys. My input: $time = "1d2h3m"; My desired output: array( "day" => 1, "hour&q...
Keppel asked 22/9, 2015 at 4:5

9

Solved

I'm trying to parse a sentence (or line of text) where you have a sentence and optionally followed some key/val pairs on the same line. Not only are the key/value pairs optional, they are dynamic. ...
Friedcake asked 22/7, 2013 at 18:50

2

Solved

I am using a open source jar (Mate Parser) which outputs in the CoNLL 2009 format after dependency parsing. I want to use the dependency parsing results for Information Extraction, however, I only ...
Roorback asked 11/12, 2014 at 5:45

7

Solved

I have a homework assignment where I need to take input from a file and continuously remove the first word in a line and append it to the end of the line until all combinations have been done. I r...
Gracegraceful asked 5/4, 2010 at 12:23

2

Solved

I'm trying to get list of files on HTTP/FTP server from R!, so that in next step I will be able to download them (or select some of files which meet my criteria to download). I know that it is pos...
Metric asked 25/8, 2015 at 20:37

2

I have try to refer to spaCy official website https://spacy.io/api/annotation#dependency-parsing but I only got list of universal dependency relation which also on https://universaldependencies.org...
Tuinenga asked 16/6, 2020 at 1:14

4

I'm using NLTK RegexpParser to extract noungroups and verbgroups from tagged tokens. How do I walk the resulting tree to find only the chunks that are NP or V groups? from nltk.chunk import Regex...
Inquisition asked 1/10, 2011 at 8:28

5

Solved

I need to retrieve the definition of an acronym based on the number of letters enclosed in parentheses. For the data I'm dealing with, the number of letters in parentheses corresponds to the number...
Natal asked 2/6, 2019 at 2:45

4

Solved

I'm looking for an way to parse a substring using PHP, and have come across preg_match however I can't seem to work out the rule that I need. I am parsing a web page and need to grab a numeric valu...
Twomey asked 9/5, 2011 at 19:57

3

Solved

I understood that TextFSM is a good way to parse text files, however, I see that it can parse data over single lines, my question is how to parse text spread over multiple lines. <Page> ...
Fungal asked 28/3, 2017 at 17:30

3

Solved

I am having trouble splitting a line into an array using the "|" in a text file and reassembling it in a certain order. There are multiple lines like the original line in the text file. This is t...
Josselyn asked 13/12, 2018 at 15:14

5

I have a set of requirements and I'm looking for the best Java-based strategy / algorthm / software to use. Basically, I want to take a set of recipe ingredients entered by real people in natural e...
Hodgkin asked 7/10, 2011 at 22:30

5

Solved

I have problem with cleaning comments and empty lines from already existing sql file. The file has over 10k lines so cleaning it manually is not an option. I have a little python script, but I hav...
Dufrene asked 3/5, 2011 at 15:22

2

Solved

Im having a problem with the Convertfrom-String cmdlet $value = 'something:009' $value | ConvertFrom-String -Delimiter ':' Output: P1 P2 -- -- something 9 The output i want is P1 P2 -- -- s...
Reactance asked 3/5, 2018 at 20:23

2

Why is there no template <typename T> T std::from_string(const std::string& s); in the C++ standard? (Seeing how there's an std::to_string() function, I mean.) PS - If you have an ide...
Beaded asked 26/8, 2016 at 15:2

4

Solved

I need to trim path if it ends with \. C:\Ravi\ I need to change to C:\Ravi I have a case where path will not end with \ (Then it must skip). I tried with .EndsWith("\"), but it fails when ...
Companionship asked 9/5, 2016 at 11:26

2

Im currently working on a project where I will need to separate individual words from a string. The catch is that all the words in the string are capitalized and have no spaces. The following is an...
Veii asked 14/11, 2017 at 2:17

2

Solved

What I would like to do is to parse an expression such this one: result = A + B + sqrt(B + 4) Where A and B are columns of a dataframe. So I would have to parse the expresion like this in order ...
Bruns asked 6/11, 2017 at 11:18

4

Solved

What makes parsing a text file in 'r' mode more convenient than parsing it in 'rb' mode? Especially when the text file in question may contain non-ASCII characters.
Kaplan asked 10/3, 2012 at 5:13

3

Solved

Given the following file, where line 1 is blank: \n Line 2\n Line 3\n How would you output only "Line 2" using sed? Solutions using other standard UNIX tools, for example awk, are welcome.
Nowak asked 6/5, 2015 at 9:57

3

Solved

I try to find the dependency path between two words in Python given dependency tree. For sentence Robots in popular culture are there to remind us of the awesomeness of unbound human agency. ...
Homocentric asked 29/9, 2015 at 3:39

4

Solved

I have a varchar(max) field containing Name Value pairs, in every line I have Name UnderScore Value. I need to do a query against it so that it returns the Name, Value pairs in two columns (so by ...
Cuellar asked 29/4, 2011 at 8:2

© 2022 - 2024 — McMap. All rights reserved.