Questions tagged [text-comparison]
42 questions
2
votes
1 answer
Find a word jtextfield in java notepad
What condition should i put so that it highlights all the words in the JTextArea?
This code works without the while loop but it only finds and highlights the first word match.
String findstr = findTextField.getText().toUpperCase(); // User Input…

Sharad Tank
- 209
- 1
- 3
- 10
1
vote
0 answers
Trying to generate an expression from a table based on table values
My SSRS report creates a summarized table. I need to do a calculation based on 2 pieces of data from the table and add it as an expression at the bottom of the report. My expression errors out as it is not reading the data output from the table.
I…

user2611375
- 37
- 7
1
vote
1 answer
How to compare a set of strings to find common substrings
I'm trying to create a script that looks through a list of strings files and reports on the sub-strings that are most common between them.
For example:
Hello, I am string one. I like apples and oranges. We are all strings here.
Hello, I am string…

Jack Shepherd
- 165
- 4
- 12
1
vote
3 answers
BeyondCompare: Replace first 6 digits if different via macro
we are using BeyondCompare 4 to compare two files. Is there a way to use BeyondCompare in such way that by pressing a button only the first 6 digits are copied from file A to file B?
I do not want to copy the entire line and we need to check and…

Cleese
- 29
- 5
1
vote
1 answer
Find Duplicate Function names in different files
I have been merging all of source-code files used by various developers/CAD drafters for the past 15 or so years. It appears that everyone worked off the same code base until about 7 years ago, when everyone seems to have made a local copy of all…

jth41
- 3,808
- 9
- 59
- 109
1
vote
0 answers
Comparing two style files for if there are common x:key exist
My problem is not directly programmatic,
I'm working on a project have 5 resource dictionary . I'm not sure if same keys are used in these rd's.
i.e. rd1.xaml contains x:key="backgroundcolor" and rd2.xaml also.
In Expression Blend no error appear…

Davut Gürbüz
- 5,526
- 4
- 47
- 83
1
vote
1 answer
How to find all Common substrings which is 3 chars or longer
Are there an efficient algorithm to search and dump all common substrings (which length is 3 or longer) between 2 strings?
Example input:
Length : 0 5 10 15 20 25 30
String 1 : ABC-DEF-GHI-JKL-ABC-ABC-STU-MWX-Y
String 2 :…

Izumi Kawashima
- 1,197
- 11
- 25
0
votes
1 answer
Conditional Formatting a Range based on Text from Range on separate Sheet in Google Sheets
Populating a dynamic event calendar from a separate sheet and want the titles of each event to be bold font.
Conditional formatting works if I am comparing to a single string or cell with text, but there are multiple titles that would appear in each…

Nicole L.
- 42
- 6
0
votes
0 answers
Pyspark "An error occurred while calling o255.showString"
I am trying to find similarity between two texts by comparing them. For this, I can calculate the tf-idf values of both texts and get them as RDD correctly. However, when I try to see the cosine similarity between them after I calculate it and print…

Alp Buğra Aker
- 3
- 2
0
votes
1 answer
Pyspark find the nearest text
I'm a new user for pyspark. I want to compare text from two different dataframes (containing news information) for recommendation.
I was able to do this very easily with Python:
def get_recommendations(title, cosine_sim, indices):
idx =…

Alp Buğra Aker
- 3
- 2
0
votes
1 answer
Text comparison between multiple files and remove the duplicate block
I have 3 notepad files in directory , i want to compare 1st file to other 2 and drop the duplicate blocks keep unique output , for Example :
File 1:
User enter email id {
email id:(xyz@gamil.com)
action:enter
data:string }
User enter…

Soumya_jeet
- 3
- 4
0
votes
0 answers
Python Fast text Text Classification
I am attempting to classify how "good" short work reports are using fast text text classification. At this stage I made only one label "interfering behavior" which I' calling __label__int, because I just want to see if it will work. I want to…

SSerb1989
- 81
- 7
0
votes
5 answers
How to test a string for text
I would like to test a string to see if anywhere it contains the text "hello". I would like the test to not take into account capitalization. How can I test this string?

Blane Townsend
- 2,888
- 5
- 41
- 55
0
votes
1 answer
Code to find unique elements gives duplicate elements due to different character-encoding
I have a text file with a list of repeated names (some of which have accented alphabets like é, à, î etc.)
e.g. List: Précilia, Maggie, Précilia
I need to write a code that will give an output of the unique names.
But, my text file seems to have…

Shritama Sengupta
- 43
- 8
0
votes
1 answer
Compare character of text files in php
Suppose I have two text files.
The first one, called reference.txt has the following content:
dog goat cat
The second one, called compare.txt has the following content:
cow goat cockroach
I want to compare each character in the 1st and 2nd text…

lesta
- 7
- 3