This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nltk | |
# ubah jadi tipe nltk | |
def convertToText(filename): | |
# raw/str -> token/list -> convert ke nltk.Text | |
raw = open(filename).read() | |
# type(raw) == string | |
tokens = nltk.word_tokenize(raw) | |
# type(tokens) == list | |
# token bisa berupa tanda-baca{?.,etc}, pos = {adverb,adj,} | |
return nltk.Text(tokens) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Categories=Development; | |
Comment=Supercharge your API workflow | |
Exec="/home/hauthorn/Programs/Postman/Postman" | |
Icon=/home/hauthorn/Programs/Postman/app/resources/app/assets/icon.png | |
Name=Postman | |
Terminal=false | |
Type=Application | |
Version=1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Template composition with inclusion | |
Every template language I have seen provides some mechanism for one template to include another, thus supporting the reuse of repeated elements like headers and footers. The included templates are called partials in Mustache parlance: | |
```html | |
<!-- home.hbs --> | |
<html> | |
<body> | |
{{> header}} | |
<p> HOME </p> | |
{{> footer}} |