Questions tagged [Text processing] (285)

1
answer

How to write the query to Solr?

There is the url field, for example with this content "https://lifehacker.ru/reklama/". But while finding url: *lifehacker.ru* returns "docs": []. What am I doing wrong? And how to find that record with "lifehacker.ru".
Estell_Dickinson asked April 7th 20 at 16:10
2
answers

Substitution of characters in the text?

Hello everybody! Decided to make the already existing translation of the game some of the fixes. The game already has a redrawn font. After studying the file with the text in a hex editor I prepared such a table - which letter matches the character in the game: spoiler A(A) B(A) To(B) G(b) D(B) E(E) | | W(?) Z(3) AND(Ü) D(Ü...
Lila asked April 7th 20 at 09:25
2
answers

Searching for duplicate fragments of text?

Good day, can anyone had experience needed by the algorithm/hint in what direction to dig. There is a large correspondence by email, the required anonymization of correspondence, it is necessary to remove the signatures from the text of the letters: John DOE Manager phone 674847585748 address 523645653 It would be possible ...
London.Wal asked April 4th 20 at 14:10
2
answers

How can I overwrite the file in PHP?

There is a file with the same format of the text (a word delimiter, a tab): Cars, appliances, sets of machines Machines and equipment Crayons Children's office How is it possible in PHP to write a function that would make from this text like this: 'Cars, equipment, sets, with cars'=>'Machines and equipment', 'Crayons'=...
Bridgette47 asked April 4th 20 at 13:38
4
answers

How to replace HTML code in many files?

I have 2000 html files where there is a div which needs to be replaced by another, together with its contents, but the contents of each file are different. Is there some sort of program that replaces the tag, works as a filter have won?
Lauriane14 asked April 4th 20 at 00:23
1
answer

How to map to each other in strings in Python?

The two columns to map columns automatically, which are more similar to each other (i.e. have more similar sequences of letters (words). 1 column: Came - saw - won Roger Rabbit Vasilisa The Wise 2 column: Who hurt Roger rabbit Caesar: "came, saw, conquered" Vasilisa tale That should automatically make each line of the secon...
raven70 asked April 4th 20 at 00:13
1
answer

In Excel highlight the cells that contains one of these words?

In Excel highlight the cells that contains one of these words? Or maybe another prog. Now using conditional formatting, you can highlight one word or just a sequence of letters. How to do the same, only if you need to search more than one word, but several, to manually enter each time? Here's an example:John DOEVasya Ivanov...
Evert_Bloc asked April 4th 20 at 00:13
1
answer

Like in C++ to process a text file, find specific line with a specific word and output to another file?

There's a text file chatlog.txt. Check the first word in the first line between "}"and "[". Example: "}Kazer_Scrazer[" Then look for the file is the same word between characters. If found - display all rows containing that word in text file warninglist.txt from chatlog.txt to wipe them off. If you can not find erases from c...
Erni asked April 4th 20 at 00:10
2
answers

How to get the desired result, the regexp pattern from the text and not bool?

Given text: `From:` <@317989885321674753> `On:` <@163995016027439106> `Reason:` <@!163995016027439106> .... Need using regular expressions to get only the first similar to "317989885321674753" it's just a ID it is always the same length (18) and always in numbers. Thank you!
kane.Strosin asked April 3rd 20 at 23:59
8
answers

How to validate absurd judgments/suggestions?

Example:Air elephant basking in a green cloud during shining round Cuba, where a square with trees down the left wheel steps over a spherical horse in vacuum. Are there any techniques (theory) and practices (code) in this direction (only those interested in theory)? In advance I Thank all who responded.
maximillia.Hegmann asked April 3rd 20 at 23:35