text-parsing
Parsing / Extracting Text from String in Rails?
I have a string in Rails, e.g. \"This is a Twitter message. #books War & Peace by Leo Tolstoy. I love this book!\", and I want to parse the text and extract only certain phrases, like \"War &[详细]
2023-03-15 12:59 分类:问答Open Source Java Text Parsers
Is there a single Java text parser which can be used to parse Office (windows) documents, OpenOffice documents, and PDFs as well? Else do I need to use something开发者_如何学Python like Apache POI for[详细]
2023-03-15 04:30 分类:问答Easiest way to read single int from front of string
I have an input string that looks something like this: 4 Bob 32 Joe 64 Sue 123 Bill 42 Where the 4 indicates the number of string integer pairs to follow. My current way of processing this looks so[详细]
2023-03-14 10:33 分类:问答Keyword proximity matching - options?
I have a case where I have an array of keywords.I want to find their matches within a give开发者_StackOverflow社区n string and return x number of words before and after each.[详细]
2023-03-13 04:10 分类:问答How can I tell a URL from a semantic web URI, programmatically
I have a program that crawls s开发者_JAVA百科emantic web documents e.g. RDF and OWL. It takes the URIs it finds and puts them into a list for further processing. However it also finds URLs that are t[详细]
2023-03-13 02:57 分类:问答Generic Enum string value parser in c#?
I have a weird question about parsing enumerations from strings. As it is, my app needs to handle parsing of few enumerations from a config file. However, I don\'t want to write parsing routines for e[详细]
2023-03-12 17:26 分类:问答Fast/low-memory method to parse first two columns in a large csv file using c#
I\'m parsing a large csv files - about 500 meg (many rows, many columns). I only need the first two columns (so up to the second comma on each line).Also, multiple threads need access to this file at[详细]
2023-03-11 03:22 分类:问答How to Input Text From User Input File for Parsing - Java
I have been learning Java for a few months now, and I am faced with a problem that I need some help on.I have a user input file that has many entries in the form:[详细]
2023-03-10 16:36 分类:问答Parse and reformat a datetime string
I have a string sent from database, I want to turn it into a date/time string. The source string is: 20110524153631[详细]
2023-03-08 11:53 分类:问答Getting the whole word (link) from a phrase, when I know some of it
Lets say I have a String: Go to this page: http://mysite.com/?page开发者_Python百科=1 , and I have a string page. I would like to create a function like so:[详细]
2023-03-07 06:54 分类:问答