Skip to content

Commit

Permalink
Improve word cloud blog
Browse files Browse the repository at this point in the history
  • Loading branch information
ucg8j committed Sep 27, 2021
1 parent 5dd46c1 commit a238160
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions _drafts/Udemy Go notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,12 @@ func main () {
```

### Method Sets
[TODO:]

### Marshalling JSON data
From wiki
>[Marshalling] the process of transforming the memory representation of an object into a data format suitable for storage or transmission.... similar or synonymous to serialization.


**Fun fact** - Programs used to be written in one large piece of code, e.g. Basic, which had goto statements to jumped between sections of the code. So it was very difficult to figure out a the logic of the program - true spaghetti code.
Expand Down
3 changes: 2 additions & 1 deletion posts/how-to-make-a-word-cloud-using-r.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ library(SnowballC)

This is the point where you load the text with which you would like to create your word cloud with. For this example I am using [JFK's 'We choose to go to the Moon'](http://en.wikipedia.org/wiki/We_choose_to_go_to_the_Moon) speech.

Create a new folder e.g. `~/Desktop/test/` containing a `speech.txt` file.
```r
# Create a corpus variable
mooncloud <- Corpus(DirSource("/put_your_path_to_your_text_here/"))
mooncloud <- Corpus(DirSource("~/Desktop/test/"))

# Make sure it has loaded properly - have a look!
inspect(mooncloud)
Expand Down

0 comments on commit a238160

Please sign in to comment.