![]() \"/'' The/DT quill/NN paused/VBD at/IN the/DT top/NN of/IN a/DT likely-looking/JJ paragraph/NN. Harry/NNP moved/VBD the/DT tip/NN of/IN his/PRP$ eagle-feather/JJ quill/NN down/IN the/DT page/NN ,/, frowning/VBG as/IN he/PRP looked/VBD for/IN something/NN that/WDT would/MD help/VB him/PRP write/VB his/PRP$ essay/NN ,/, \"/`` Witch/UH Burning/VBG in/IN the/DT Fourteenth/NNP Century/NNP Was/VBD Completely/RB Pointless/NNP discuss/VBP. It/PRP was/VBD nearly/RB midnight/NN ,/, and/CC he/PRP was/VBD lying/VBG on/IN his/PRP$ stomach/NN in/IN bed/NN ,/, the/DT blankets/NNS drawn/VBN right/RB over/IN his/PRP$ head/NN like/IN a/DT tent/NN ,/, a/DT flashlight/NN in/IN one/CD hand/NN and/CC a/DT large/JJ leather-bound/NN book/NN (/-LRB- A/DT History/NN of/IN Magic/NNP by/IN Bathilda/NNP Bagshot/NNP )/-RRB- propped/VBN open/JJ against/IN the/DT pillow/NN. And/CC he/PRP also/RB happened/VBD to/TO be/VB a/DT wizard/NN. ![]() For/IN another/DT ,/, he/PRP really/RB wanted/VBD to/TO do/VB his/PRP$ homework/NN but/CC was/VBD forced/VBN to/TO do/VB it/PRP in/IN secret/JJ ,/, in/IN the/DT dead/JJ of/IN night/NN. For/IN one/CD thing/NN ,/, he/PRP hated/VBD the/DT summer/NN holidays/NNS more/RBR than/IN any/DT other/JJ time/NN of/IN year/NN. Tag_pos(prisoner_of_azkaban) # "OWL/NNP POST/NNP Harry/NNP Potter/NNP was/VBD a/DT highly/RB unusual/JJ boy/NN in/IN many/JJ ways/NNS. What are the top two most common parts of speech?.Use the universal tag set and plot options to see what the most common parts of speech are for your chapter.Use the tagger package to tag your chosen book and print out the first chapter only (i.e., row 1 of the book you chose).# numpy_version: 1.17.4 py_module_available("spacy") # TRUE py_module_available("nltk") # TRUE #python chunk # numpy: /home/kaiyan_wei/.local/share/r-miniconda/envs/r-reticulate/lib/python3.6/site-packages/numpy # pythonhome: /home/kaiyan_wei/.local/share/r-miniconda/envs/r-reticulate:/home/kaiyan_wei/.local/share/r-miniconda/envs/r-reticulate # libpython: /home/kaiyan_wei/.local/share/r-miniconda/envs/r-reticulate/lib/libpython3.6m.so Py_config() # python: /home/kaiyan_wei/.local/share/r-miniconda/envs/r-reticulate/bin/python Also transfer your book_data from R into Python.In this section, include import functions to load the packages you will use for Python.#devtools::install_github("bnosac/RDRPOSTagger") #devtools::install_github("trinker/tagger") #devtools::install_github("trinker/coreNLPsetup") #devtools::install_github("trinker/termco") #pick one of the harrypotter books to analyze with your POS text #devtools::install_github("bradleyboehmke/harrypotter") In this section, include the libraries you need for the R questions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |