1
0
mirror of https://github.com/gsi-upm/sitc synced 2025-09-17 04:12:21 +00:00

Compare commits

6 Commits

Author SHA1 Message Date
Carlos A. Iglesias
21dc5ec3de Update 1__10_Modules_Packages.ipynb 2020-02-13 18:10:08 +01:00
Carlos A. Iglesias
db99033727 Update 1__10_Modules_Packages.ipynb 2020-02-13 18:08:25 +01:00
Carlos A. Iglesias
5459e801d5 Update 1_7_Variables.ipynb 2020-02-13 17:56:36 +01:00
Carlos A. Iglesias
75f08ea170 Merge pull request #5 from gsi-upm/dveni-patch-2
Update 4_1_Lexical_Processing.ipynb
2019-11-27 10:19:12 +01:00
Dani Vera
19ea5dff09 Update 4_1_Lexical_Processing.ipynb 2019-11-26 15:14:40 +01:00
Carlos A. Iglesias
e70689072f Merge pull request #4 from gsi-upm/dveni-patch-1
Update 3_3_Data_Munging_with_Pandas.ipynb
2019-09-19 10:46:19 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -326,7 +326,7 @@
"def preprocess(words, type='doc'):\n",
" if (type == 'tweet'):\n",
" tknzr = TweetTokenizer(strip_handles=True, reduce_len=True)\n",
" tokens = tknzr.tokenize(tweet)\n",
" tokens = tknzr.tokenize(words)\n",
" else:\n",
" tokens = nltk.word_tokenize(words.lower())\n",
" porter = nltk.PorterStemmer()\n",

View File

@@ -66,7 +66,7 @@
"\n",
"This means:\n",
"* ** dynamically typed**: variables do not declare a static type (as in Java int a = 2;). Variables have no type themselves, they are just names that hold a reference to some object. The type of the variable is changed dynamically when you change the type of the assigned data object. \n",
"* **strongly typed**: the interpreter tracks variable types. There is no explicit type conversion. For example, in Javascript we can "
"* **strongly typed**: the interpreter tracks variable types. There is no implicit type conversion. This means that all the type variables should be converted manually, preventing from unexpected behaviour. "
]
},
{