Text Processing with Ruby: Extract Value from the Data That Surrounds You (Paperback)
暫譯: 使用 Ruby 進行文本處理:從周圍數據中提取價值 (平裝本)
Rob Miller
- 出版商: Pragmatic Bookshelf
- 出版日期: 2015-10-02
- 定價: $1,200
- 售價: 8.8 折 $1,056
- 語言: 英文
- 頁數: 274
- 裝訂: Paperback
- ISBN: 1680500708
- ISBN-13: 9781680500707
-
相關分類:
Ruby
立即出貨(限量) (庫存=2)
買這商品的人也買了...
-
$880$695 -
$1,330$1,264 -
$990$891 -
$620$490 -
$800$632 -
$850$808 -
$590$466 -
$400$380 -
$480$408 -
$550$550 -
$1,350$1,283 -
$1,485$1,411 -
$1,680$1,596 -
$520$411 -
$650$553 -
$460$359 -
$360$284 -
$880$695 -
$1,130$1,074 -
$400$316 -
$590$502 -
$380$300 -
$620$527 -
$450$383 -
$594Ruby For Kids (Paperback)
相關主題
商品描述
Text is everywhere. Web pages, databases, the contents of files--for almost any programming task you perform, you need to process text. Cut even the most complex text-based tasks down to size and learn how to master regular expressions, scrape information from Web pages, develop reusable utilities to process text in pipelines, and more.
Most information in the world is in text format, and programmers often find themselves needing to make sense of the data hiding within. It might be to convert it from one format to another, or to find out information about the text as a whole, or to extract information fromit. But how do you do this efficiently, avoiding labor-intensive, manual work?
Text Processing with Ruby takes a practical approach. You'll learn how to get text into your Ruby programs from the file system and from user input. You'll process delimited files such as CSVs, and write utilities that interact with other programs in text-processing pipelines. Decipher character encoding mysteries, and avoid the pain of jumbled characters and malformed output.
You'll learn to use regular expressions to match, extract, and replace patterns in text. You'll write a parser and learn how to process Web pages to pull out information from even the messiest of HTML.
Before long you'll be able to tackle even the most enormous and entangled text with ease, scything through gigabytes of data and effortlessly extracting the bits that matter.
What You Need:
This book requires a passing familiarity with the Ruby programming language, and assumes that you already have Ruby installed on your computer.
商品描述(中文翻譯)
文本無處不在。網頁、資料庫、檔案內容——對於幾乎任何編程任務,您都需要處理文本。將即使是最複雜的基於文本的任務簡化,學習如何掌握正則表達式,從網頁抓取資訊,開發可重用的工具來在管道中處理文本,等等。
世界上大多數資訊都是以文本格式存在,程序員經常需要理解隱藏在其中的數據。這可能是將其從一種格式轉換為另一種格式,或是了解整體文本的資訊,或是從中提取資訊。但是,您如何有效地做到這一點,避免繁重的手動工作呢?
《使用 Ruby 進行文本處理》採取實用的方法。您將學習如何從檔案系統和用戶輸入中將文本引入您的 Ruby 程式。您將處理以分隔符分隔的檔案,例如 CSV,並編寫與其他程式在文本處理管道中互動的工具。解碼字符編碼的奧秘,避免混亂字符和格式錯誤輸出的痛苦。
您將學習使用正則表達式來匹配、提取和替換文本中的模式。您將編寫解析器,並學習如何處理網頁,以從即使是最混亂的 HTML 中提取資訊。
不久之後,您將能夠輕鬆處理即使是最龐大和錯綜複雜的文本,快速處理數十億字節的數據,輕鬆提取重要的部分。
您需要的條件:
本書要求您對 Ruby 編程語言有基本的熟悉程度,並假設您已經在計算機上安裝了 Ruby。