master emlex
play

Master EmLex CiTIUS Design and use of linguistic tools - PowerPoint PPT Presentation

Introduction Linguistic Analysis Information Extraction NLP Applications Design and use of linguistic tools II Building linguistic resources with NLP tools Pablo Gamallo CiTIUS Universidade de Santiago de Compostela Master EmLex CiTIUS


  1. Introduction Linguistic Analysis Information Extraction NLP Applications Design and use of linguistic tools II Building linguistic resources with NLP tools Pablo Gamallo CiTIUS Universidade de Santiago de Compostela Master EmLex CiTIUS Design and use of linguistic tools

  2. Introduction Linguistic Analysis Information Extraction NLP Applications Table of Contents Introduction 1 Linguistic Analysis 2 Information Extraction 3 NLP Applications 4 CiTIUS Design and use of linguistic tools

  3. Introduction Linguistic Analysis Information Extraction NLP Applications Table of Contents Introduction 1 Linguistic Analysis 2 Information Extraction 3 NLP Applications 4 CiTIUS Design and use of linguistic tools

  4. Introduction Linguistic Analysis Information Extraction NLP Applications Objectives To use and apply NLP tools on text corpora: tokenization and lemmatization PoS tagging syntactic analysis multi-word extraction named entity recognition sentiment analysis authorship attribution CiTIUS Design and use of linguistic tools

  5. Introduction Linguistic Analysis Information Extraction NLP Applications Tools for Natural Language Processing (NLP) Extraction Analysis Applications terms tokenization summarization (multi-words) lemmatization spell/grammar entities morpho-syntactic checking semantic analysis authorship relations ( PoS-taggers ) attribution concepts sintactic analysis language distance ( dependency opinions, (translation) parsers ) polarity CiTIUS Design and use of linguistic tools

  6. Introduction Linguistic Analysis Information Extraction NLP Applications Tools for Natural Language Processing (NLP) Extraction Analysis Applications terms tokenization summarization (multi-words) lemmatization spell/grammar entities morpho-syntactic checking semantic analysis authorship relations ( PoS-taggers ) attribution concepts sintactic analysis language distance ( dependency opinions, (translation) parsers ) polarity CiTIUS Design and use of linguistic tools

  7. Introduction Linguistic Analysis Information Extraction NLP Applications Tools for Natural Language Processing (NLP) Extraction Analysis Applications terms tokenization summarization (multi-words) lemmatization spell/grammar entities morpho-syntactic checking semantic analysis authorship relations ( PoS-taggers ) attribution concepts sintactic analysis language distance ( dependency opinions, (translation) parsers ) polarity CiTIUS Design and use of linguistic tools

  8. Introduction Linguistic Analysis Information Extraction NLP Applications LinguaKit Web demo: https://linguakit.com Open source code: https://github.com/citiususc/Linguakit CiTIUS Design and use of linguistic tools

  9. Introduction Linguistic Analysis Information Extraction NLP Applications Table of Contents Introduction 1 Linguistic Analysis 2 Information Extraction 3 NLP Applications 4 CiTIUS Design and use of linguistic tools

  10. Introduction Linguistic Analysis Information Extraction NLP Applications Tokenization cat text.txt | PATH/Linguakit-master/linguakit tok es CiTIUS Design and use of linguistic tools

  11. Introduction Linguistic Analysis Information Extraction NLP Applications Counting and sorting cat text.txt | PATH/Linguakit-master/linguakit tok es | wc cat text.txt | PATH/Linguakit-master/linguakit tok es -sort cat text.txt | PATH/Linguakit-master/linguakit tok es | sort | uniq -c | sort -nr CiTIUS Design and use of linguistic tools

  12. Introduction Linguistic Analysis Information Extraction NLP Applications PoS tagging and Lemmatization cat text.txt | PATH/Linguakit-master/linguakit tagger es CiTIUS Design and use of linguistic tools

  13. Introduction Linguistic Analysis Information Extraction NLP Applications Counting PoS tags and lemmas Count common nouns: cat text.txt | PATH/Linguakit-master/linguakit tagger es | cut -d ‘‘ ‘‘ -f 3 | grep ‘‘NC" | wc Count lemma “comer”: cat text.txt | PATH/Linguakit-master/linguakit tagger es | cut -d ‘‘ ‘‘ -f 2 | grep ‘‘ˆcomer$’’ | wc CiTIUS Design and use of linguistic tools

  14. Introduction Linguistic Analysis Information Extraction NLP Applications Sorting PoS tags and lemmas Sorting lemmas by frequency: cat text.txt | PATH/Linguakit-master/linguakit tagger es | cut -d ‘‘ ‘‘ -f 2 | sort | uniq -c | sort -nr Sorting PoS tags by frequency: cat text.txt | PATH/Linguakit-master/linguakit tagger es | cut -d ‘‘ ‘‘ -f 3 | cut -c1-2 | sort | uniq -c | sort -nr CiTIUS Design and use of linguistic tools

  15. Introduction Linguistic Analysis Information Extraction NLP Applications Dependency Parsing cat text.txt | PATH/Linguakit-master/linguakit dep es CiTIUS Design and use of linguistic tools

  16. Introduction Linguistic Analysis Information Extraction NLP Applications Dependency Parsing: Argument identification Select the direct objects of the verb “comer” cat text.txt | PATH/Linguakit-master/linguakit dep es |grep Dobj | grep "comer\_VERB" |awk -F ";" ’{print $3}’ |awk -F "\_" ’{print $1}’ CiTIUS Design and use of linguistic tools

  17. Introduction Linguistic Analysis Information Extraction NLP Applications Named Entity Recognition-Classification (NER-NEC) cat text.txt | PATH/Linguakit-master/linguakit tagger es -ner cat text.txt | PATH/Linguakit-master/linguakit tagger es -nec CiTIUS Design and use of linguistic tools

  18. Introduction Linguistic Analysis Information Extraction NLP Applications NERC: Selecting Locations and Organizations Select locations: cat text.txt | PATH/Linguakit-master/linguakit tagger es -nec | grep NP00G | cut -d " " -f 1 | sort | uniq -c | sort -nr Select organizations: cat text.txt | PATH/Linguakit-master/linguakit tagger es -nec | grep NP00O | cut -d " " -f 1 | sort | uniq -c | sort -nr CiTIUS Design and use of linguistic tools

  19. Introduction Linguistic Analysis Information Extraction NLP Applications Table of Contents Introduction 1 Linguistic Analysis 2 Information Extraction 3 NLP Applications 4 CiTIUS Design and use of linguistic tools

  20. Introduction Linguistic Analysis Information Extraction NLP Applications Multi-Word Extraction cat text.txt | PATH/Linguakit-master/linguakit mwe es CiTIUS Design and use of linguistic tools

  21. Introduction Linguistic Analysis Information Extraction NLP Applications Multi-Word Extraction: Class Practice Look for texts on a specific field (e.g. medicine, archeology,...) and use the multi-word extractor to build a terminology. You can use a PDF to TXT conversor: cat text.pdf | pdftotext > text.txt CiTIUS Design and use of linguistic tools

  22. Introduction Linguistic Analysis Information Extraction NLP Applications Opinion Mining / Sentiment Analysis cat text.txt | PATH/Linguakit-master/linguakit sent es CiTIUS Design and use of linguistic tools

  23. Introduction Linguistic Analysis Information Extraction NLP Applications Opinion Mining: Class Practice Open the polarity lexicon and introduce new terms You can edit the Spanish lexicon as follows: gedit PATH/Linguakit-master/sentiment/es/lex_es CiTIUS Design and use of linguistic tools

  24. Introduction Linguistic Analysis Information Extraction NLP Applications Semantic Relation Extraction cat text.txt | PATH/Linguakit-master/linguakit rel es Open Information Extraction approach, described in: Gamallo, P . and Marcos Garcia (2015). Multilingual Open Information Extraction, Lecture Notes in Computer Science, 9273, Berlin: Springer-Verlag: 711-722. ISNN: 0302-9743. CiTIUS Design and use of linguistic tools

  25. Introduction Linguistic Analysis Information Extraction NLP Applications Table of Contents Introduction 1 Linguistic Analysis 2 Information Extraction 3 NLP Applications 4 CiTIUS Design and use of linguistic tools

  26. Introduction Linguistic Analysis Information Extraction NLP Applications Summarization cat text.txt | PATH/Linguakit-master/linguakit sum es -p 5 CiTIUS Design and use of linguistic tools

  27. Introduction Linguistic Analysis Information Extraction NLP Applications Grammar Checking: Aval´ ıngua echo Vou a aportar a documentasci´ on | PATH/Linguakit-master/linguakit aval gl -xml Online demos for Spanish: http://fegalaz.usc.es/nlpapi http://fegalaz.usc.es/avalingua CiTIUS Design and use of linguistic tools

  28. Introduction Linguistic Analysis Information Extraction NLP Applications Authorship Attribution Source code in: https://github.com/gamallo/Autoria Requirements: cpan Math::KullbackLeibler::Discrete CiTIUS Design and use of linguistic tools

  29. Introduction Linguistic Analysis Information Extraction NLP Applications Authorship Attribution: Class Practice Select one book to be identified, for instance, “Fortunata y Jacinta”, de Gald´ 1 os. 2 Select three other works by Gald´ os. Select three works by other two authors, for instance, Borges and Unamuno. 3 4 Create four files in folder ./corpus/all : FortunataYJacinta.txt (to be compared against the rest of files) Galdos.txt (merging the other 3 works by Gald´ os) Borges.txt (merging the selected 3 works by Borges) Unamuno.txt (merging the selected 3 works by Unamuno) Run the script: 5 sh run.sh FortunataYJacita.txt CiTIUS Design and use of linguistic tools

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend