Posts

Assume that I have a file named "letters" in my dictionary contains multiple letters, each line per one letter such as:

  Assume that I have a file named "letters" in my dictionary contains multiple letters, each line per one letter such as: a b c d e etc In the second files named "words", I have this line: we want to replace by these possible letter which in the letters file with sed instruction such as can be , OR  OR ..... How can we do it? So basically I want to replace a content of 1 file by the contents of another file Solution:  We can use this command [ sed -i ' s/old-text/new-text/g ' filename ] sed -i 's/Letters/WORDS/g ' filename even we can use cp file1 file2 and also cat file1 >> file2

Provide me a full Naive Bayes algorithm Python code for sentiment analysis(NLP).(please explain how to process natural Language into negative, positive and neutral) kindly explain step by step as I am a beginner.

Image
  NAIVE BAYES ALGORITHM:   Let, Assume you wish to categorize user reviews as good or bad. Sentiment Analysis is a popular job to be performed by data scientists. This is a simple guide using Naive Bayes Classifier and Scikit-learn to create a Google Play store reviews classifier (Sentiment Analysis) in Python. Naive Bayes is the simplest and fastest classification algorithm for a large chunk of data. In various applications such as spam filtering, text classification, sentiment analysis, and recommendation systems, Naive Bayes classifier is used successfully. It uses the Bayes probability theorem for unknown class prediction. The Naive Bayes classification technique is a simple and powerful classification task in machine learning. The use of Bayes’ theorem with a strong independence assumption between the features is the basis for naive Bayes classification. When used for textual data analysis, such as Natural Language Processing, the Naive Bayes classification yields good re...

What do “Feasibility” and “Desirability” mean in the context of software design. Specify one question for each that leads to a design type.The main goal of a software design thinking work process is to create a solution that is desirable, feasible, and viable. This means our solution should not only provides a solution but also needs to implement easily and have a proper commercial model. Desirability is at the forefront as it is mainly concerned with our ideas and validating things about taking users in mind and also to do testing again and again. A test for desirability focuses on whether your solution is a nice to have or a must-have for your customer. Ask yourself, what task am I helping my customer complete? What does successful completion of that task look like for them? Looking at what they are trying to do and why it is important to them puts yourself in their shoes, lets you look at your solution from their eyes. If you are solving the key pain points they encounter when trying to complete this task, your solution has met the test for desirability. If not, and there are other pain points that you haven’t addressed, then pivoting your solution might put you on a better path. Feasibility in software design is a validation process that looks at how design delivers to requirements, objectives, and goals. The common Software design feasibility is: Technical Financial Usability Risk Experience Quality Feasibility is a way to evaluate the desirability of a project or a design. Any company before any project invests their time and money in any project they want to know how successful the project will be before investing. As the company wants to know how much amount of research is needed to be done and also to know the market value of a project.

  The main goal of a software design thinking work process is to create a solution that is desirable, feasible, and viable. This means our solution should not only provides a solution but also needs to implement easily and have a proper commercial model. Desirability  is at the forefront as it is mainly concerned with our ideas and validating things about taking users in mind and also to do testing again and again. A test for desirability focuses on whether your solution is a nice to have or a must-have for your customer. Ask yourself, what task am I helping my customer complete? What does successful completion of that task look like for them? Looking at what they are trying to do and why it is important to them puts yourself in their shoes, lets you look at your solution from their eyes. If you are solving the key pain points they encounter when trying to complete this task, your solution has met the test for desirability. If not, and there are other pain points that you have...

Which of the following is not a challenge of Cloud Computing.

Which of the following is  not  a challenge of Cloud Computing: 1. Security 2. Governance 3. Virtualisation 4. Privacy The answer is Option 3 Virtualisation In the cloud, Computing  Virtualisation is not a challenge. Virtualization deploys software that makes an abstraction layer across computer hardware, letting the hardware components such as processors, memory, storage, etc of a particular computer be segmented into several virtual elements and also call it as virtual machines. Security, Privacy, and Governance are the biggest challenge in cloud computing. Security: As security is the main concern as the information or data which we used to store in the cloud is very important to us to make this secured we spend more money to make it more secured over the cloud servers where it's prevented from 3rd party sources and also from hacking. Governance: Another ethical issue in cloud computing is maintaining proper control over asset management and maintenance. There should b...

Create and outline the timeline of History of Operating Systems.

Image
  Give three (4) examples for: A. Batch OS B. Distributed OS C. Multitasking OS D. Network OS E. Real Time OS Subject - "Platform Technology" History of Operating Systems Before Sharing History we come to know about what is Operating System. The operating system is a system program that serves as an interface between the computing system and the end-user. Operating systems create an environment where the user can run any programs or communicate with software or applications in a comfortable and well-organized way. It also helps manage the software/hardware resource, such as file management, memory management, input/ output, and many peripheral devices like a disk drive, printers, etc. These are the popular operating system: Linux OS, Windows OS, Mac OS, VMS, OS/400, etc. Functions of Operating System Processor management Act as a Resource Manager Memory Management File Management Security Device Management Input devices / Output devices Deadlock Prevention Time Management Coo...

Detail the categories of variables by lifetimes including their respective advantages and disadvantages.

  We need to know about what is variable.? A Variable is a name assign to a storage area that the program can manipulate. A variable type determines the size and layout of the variable’s memory. It also determines the range of values that need to be stored inside that memory and the nature of operations that can be applied to that variable. Scope of Variables The scope of the variable is simply the life of a variable. It is a block of code under which a variable is applicable or alive. For example: function foo(){ var x; } You declare a variable “x” inside a function “foo.” The scope of that variable remains inside that function it can’t be used outside of that function. Categories of variables by lifetimes There are three places where variables you can declare variable programming language: Inside a function or a block: Local variables Outside of all functions: Global variables In the definition of function parameters: Formal parameters Local Variable:- local Variable  is def...

TRUE or FALSE

1: Y ou can register an Action Listener to a JFrame 2: An ItemEvent is generated only when a user clicks a UI component ENUMERATION: 3: Why don’t ItemListener and ActionListener have adapter classes 1: The answer is True. We Can do this by using. Public void actionPerformed(ActionEvent e) { numClicks++; text.setText("Button Clicked " + numClicks + " times"); 2.) False A semantic event indicates that an item was selected or deselected. This high-level event is generated by an ItemSelectable object (such as a List) when an item is selected or deselected by the user. The event is passed to every   ItemListener   an object which registered to receive such events using the component's   addItemListener   method. 3:)   Item events are fired by components that implement the ItemSelectable interface. Generally, ItemSelectable components maintain on/off state for one or more items. The Swing components that fire item events include buttons like checkbox...