15,905,316 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by HamzaMcBob (Top 19 by date)
HamzaMcBob
2-May-20 10:42am
View
YES THE Do while was meant to be infant …
I am not very confident with Arduino sorry about any errors
HamzaMcBob
27-Dec-19 5:21am
View
and these are all the variables
string Intermeddiate = //Literally any news websites articles html
string Titlestart = $"<title>";
string Titleend = $"";
HamzaMcBob
27-Dec-19 5:21am
View
this line provides the error
string removedback = removedfront.Remove(removedfront.IndexOf(Titleend), removedfront.IndexOf(Titleend)+7);
HamzaMcBob
20-Dec-19 13:48pm
View
which I cant regex because the links I need are not there
HamzaMcBob
20-Dec-19 13:47pm
View
I have no idea how to make it work when I run it, It gives me something similar to this
<title>Jaden Moodie murder: Man guilty of killing boy in gang knife attack - Google Search(function(){document.documentElement.addEventListener("submit",function(b){var a;if(a=b.target){var c=a.getAttribute("data-submitfalse");a="1"==c||"q"==c&&!a.elements.q.value?!0:!1}else a=!1;a&&(b.preventDefault(),b.stopPropagation())},!0);}).call(this);(function(){var a=window.performance;window.start=(new Date).getTime();a:{var b=window;if(a){var c=a.timing;if(c){var d=c.navigationStart,e=c.responseStart;if(e>d&&e<=window.start){window.start=e;b.wsrt=e-d;break a}}a.now&&(b.wsrt=Math.floor(a.now()))}}window.google=window.google||{};google.aft=function(f){f.setAttribute("data-iml",+new Date)};}).call(this);(function(){window.jsarwt=function(){return!1};}).call(this);(function(){var c=[],e=0;window.ping=function(b){-1==b.indexOf("&zx")&&(b+="&zx="+(new Date).getTime());var a=new Image,d=e++;c[d]=a;a.onerror=a.onload=a.onabort=function(){delete c[d]};a.src=b};}).call(this);body{margin:0 auto;max-width:736px;padding:0 8px}a{color:#1967D2;text-decoration:none;tap-highlight-color:rgba(0,0,0,.1)}a:visited{color:#4B11A8}a:hover{text-decoration:underline}img{border:0}html{font-family:Roboto,HelveticaNeue,Arial,sans-serif;font-size:14px;line-height:20px;text-size-adjust:100%;color:#3C4043;word-wrap:break-word;background-color:#fff}.bRsWnc{background-color:#fff;border-top:1px solid #e0e0e0;height:39px;overflow:hidden}.N6RWV{height:51px;overflow-scrolling:touch;overflow-x:auto;overflow-y:hidden}.Uv67qb{box-pack:justify;font-size:12px;line-height:37px;justify-content:space-between;justify-content:space-between}.Uv67qb a,.Uv67qb span{color:#757575;display:block;flex:none;padding:0 16px;text-align:center;text-transform:uppercase;}span.OXXup{border-bottom:2px solid #4285f4;color:#4285f4;font-weight:bold}a.eZt8xd:visited{color:#757575}.FElbsf{border-left:1px solid rgba(0,0,0,.12)}header article{overflow:visible}.Pg70bf{height:39px;display:box;display:flex;display:flex;width:100%}.H0PQec{position:relative;flex:1}.sbc{display:flex;width:100%}.Pg70bf input{margin:2px 4px 2px 8px;}.x{width:26px;color:#757575;font:27px/38px arial, sans-serif;line-height:40px;}#qdClwb{flex:0 0 auto;width:39px;height:39px;border-bottom:0;padding:0;border-top-right-radius:8px;background-color:#3b78e7;border:1px solid #3367d6;background-image:url(data:image/gif;base64,R0lGODdhJAAjAPIHAODr/nCk+MPZ/FmV96zK+/7+/5K5+kqL9iwAAAAAJAAjAEADani63P4wykmbKcQRXDscQAEMXmmeaLQVLCukzyC09AjfeK7v/MAajACLhPMVAgwjsUcEiZa8xgAYrVqv2Kx2iwsIAAABknfBBAKrTE4IcMyot8ur8datqIbQfJdnAfo2WE6BV05wXIiJigkAOw==);}.sc{font-size:;position:absolute;top:39px;left:0;right:0;box-shadow:0px 2px 5px rgba(0,0,0,0.2);z-index:2;background-color:#fff}.sc>div{padding:10px 10px;padding-left:16px;padding-left:14px;border-top:1px solid #DFE1E5}.scs{background-color:#f5f5f5;}.noHIxc{display:block;font-size:16px;padding:0 0 0 8px;flex:1;height:35px;outline:none;border:none;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);overflow:hidden;}.sbc input[type=text]{background:none}.sml .cOl4Id{display:none}.l{display:none}.sml header{background:none}.sml .l{display:block;padding:0 8px}.sml .l{letter-spacing:-1px;text-align:center;border-radius:2px 0 0 0;font:22px/36px Futura, Arial, sans-serif;font-smoothing:antialiased}.bz1lBb{background:#fff;border-radius:8px 8px 0 0;box-shadow:0 1px 6px rgba(32, 33, 36, 0.18);margin-top:10px}.KP7LCb{border-radius:0 0 8px 8px;box-shadow:0 2px 3px rgba(32, 33, 36, 0.18);margin-bottom:10px;overflow:hidden}.cOl4Id{letter-spacing:-1px;text-align:center;font:22pt Futura, Arial, sans-serif;padding:10px 0 5px 0;height:37px;font-smoothing:antialiased}.cOl4Id span{display:inline-block}.S591j{height:100%}.V6gwVd{color:#4285F4}.iWkuvd{color:#EA4335}.cDrQ7{color:#fbcc05}.ntlR9{color:#34A853}.tJ3Myc{-webkit-transform:rotate(-20deg);position:relative;left:-1px
HamzaMcBob
20-Dec-19 13:46pm
View
Deleted
That's my Question you gave a link to lol
HamzaMcBob
30-Nov-19 7:48am
View
Thanks for the help , was stressing out about it to a certain extent, is there a certain reason why I should do the #2 , is it because we don't want to get in trouble with google?
HamzaMcBob
2-Sep-19 11:55am
View
done it
HamzaMcBob
2-Sep-19 9:58am
View
updated it now sorry
HamzaMcBob
2-Sep-19 9:56am
View
shoo tthat was anerror my pad they should all say
HamzaMcBob
31-Aug-19 7:54am
View
@"path" worked , I was tired lmao
HamzaMcBob
22-Aug-19 11:04am
View
that makes so much more sense , oh my daze you absolute genius.
HamzaMcBob
22-Aug-19 9:01am
View
yeah this is beautiful code like literally this is amazing but its so dam high level that I am finding it difficult to understand and add on to , is it possible if you could explain it to me , you see I want to create it so it can compare 2 sets of text and say which one has more occurrences of a word. but one of the text is going to be an average of hundreds of texts as in I am comparing 1 text file to see how many occurrences of every word exist in it to an average of how many words exist in 100 text file
HamzaMcBob
8-Aug-19 9:19am
View
so I figured it out, the code I showed above was missing a line of code that was in the original , it was a regex expression and that code seemed to be mucking it up , it looked like this before
string ImpureTitleText = "I was very <title> proud of my nickname throughout high school. but today I couldn’t be .any ¡ different to what my nickname was.";// insert text file here
string LesserImputerText = Regex.Replace(ImpureTitleText, @"(@[A-Za-z0-9]+)|([^0-9A-Za-z \t])|(\w+:\/\/\S+)", " ").ToString(); //Gets rid of non ASCII values (from http://luisquintanilla.me/2018/01/18/real-time-sentiment-analysis-csharp/) but does seem to do anything when putting non ASCII character such as upsidedown exclamation mark.
int Tstart = ImpureTitleText.IndexOf("<title>") + "<title>".Length; //From here to //this regex breaks it
int TEnd = ImpureTitleText.IndexOf("");
string PureTitleText = ImpureTitleText.Substring(Tstart, TEnd - Tstart);
HamzaMcBob
2-Aug-19 13:21pm
View
The File.AppendAllText functionality is not working , the name of the file it is to be saved in is called "yelp_labelled txt" (the training data) and when I try and do
string appendText = prediction.SentimentText + prediction.Prediction;
File.AppendAllText(yelp_labelled.txt, appendText);
it comes up with the error yelp_labelled does not exist in the current context
I shoudnt have to state it at the beginning of the subroutine should I??
Iv also tried streamwriter and that also gave the same error
HamzaMcBob
1-Aug-19 17:52pm
View
also on a side note when i literally insert the text and the binary representative i want in the training data and insert the exact same text into what i am testing sometimes it will work and sometimes it will and other times it will not work , for example i put in a sentence before(into the training data) with the result i wanted and it gave the the correct answer when running it but it could not do the same thing when i did it with another sentence
The woman is dead. 0 <---in training data , in test --->SentimentText = "The woman is dead. ,Negative
as expected
but when trying to do it with another sentnence it does not work.
ps i used that specific senentence because of the program i am trying to create.
HamzaMcBob
1-Aug-19 15:40pm
View
LOOOL so this is extremely interesting, I created it , it works more or less perfectly , but im trying to implement it into a different program so long story short
when I type in "The woman died " or "The woman was murdered" ps if your wondering why I chose these sentences it was due to the specific program I am trying to create. instead of negative , it came up with positive …
so here's my question is there a way to refine it so it will give better results or does it just need more training , in the sense that I literally just put "The woman is dead " and as negative into its training data. Would you consider this cheating . And technically speaking should be able to train the AI for specific circumstances by just putting it in those situations in its training phase ...right?
HamzaMcBob
31-Jul-19 17:28pm
View
Surprisingly no more questions , managed to do the rest with little stress
HamzaMcBob
31-Jul-19 7:57am
View
Your a legend
Show More