Search Results

Search: Posts Made By: 1Brajesh
Forum: Programming 09-04-2017
2,499
Posted By 1Brajesh
hmm...could be
hmm...could be
Forum: Programming 09-04-2017
2,499
Posted By 1Brajesh
Python p.ravel question
Hi,

I'm trying to decipher some python code located here:
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy * GitHub...
985
Posted By 1Brajesh
2 lines of python
Hi,

Please can you tell me what the last two lines in the python code below are doing?


data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))...
3,636
Posted By 1Brajesh
thanks drl I will take a look
thanks drl I will take a look
3,636
Posted By 1Brajesh
Hi Don, Thank you for your detailed reply...
Hi Don,

Thank you for your detailed reply and examples of RS expressions.
You are correct, I would need to consider all the other abbreviations as well.

I'm using these sentences for training...
3,636
Posted By 1Brajesh
Yes, I think that's a great idea, the input file...
Yes, I think that's a great idea, the input file is in my control, I could even just replace "Mr." with "Mr". Thanks for this suggestion, at least I can move on now!

The input is for a neural...
3,636
Posted By 1Brajesh
Hi Don, I'm trying to capture an english...
Hi Don,

I'm trying to capture an english sentence in a record.
This sentence could be very long and span multiple lines in a file.

My perfect record separator would be a period, exclamation...
3,636
Posted By 1Brajesh
hmmm...interesting...isn't the record separator a...
hmmm...interesting...isn't the record separator a newline now?
What if one sentence spans multiple newlines? Won't it be counted as two or more sentences?

Also, I don't understand exactly what...
3,636
Posted By 1Brajesh
No it didn't work :( It broke the file that...
No it didn't work :(

It broke the file that was working.
I have a file without any "Mr." words.

By adding your suggestion, even the file without any "Mr." words stops working.

For...
3,636
Posted By 1Brajesh
Help with awk regular expression for RS record separator
Hi,

I'm using gawk to read a text file and count the sentences.
I want to use a record separator of a period, exclamation mark and a question mark.

The problem is that the file contains...
Showing results 1 to 10 of 10

 

Featured Tech Videos

All times are GMT -4. The time now is 09:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy