<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Liang Zhang on Medium]]></title>
        <description><![CDATA[Stories by Liang Zhang on Medium]]></description>
        <link>https://medium.com/@liangzhang6677?source=rss-7c11d7927e59------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*9hjQl_4bZePv2i_CFi0PDw.jpeg</url>
            <title>Stories by Liang Zhang on Medium</title>
            <link>https://medium.com/@liangzhang6677?source=rss-7c11d7927e59------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:12:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@liangzhang6677/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[NLP Notes]]></title>
            <link>https://medium.com/@liangzhang6677/nlp-notes-5e964f5d740e?source=rss-7c11d7927e59------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e964f5d740e</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Liang Zhang]]></dc:creator>
            <pubDate>Wed, 24 Apr 2019 04:14:58 GMT</pubDate>
            <atom:updated>2019-04-24T04:14:58.371Z</atom:updated>
            <content:encoded><![CDATA[<h3>Common Python NLP Libraries</h3><h3>PyTorch</h3><p><a href="https://pytorch.org/ecosystem">https://pytorch.org/ecosystem</a><br> <a href="https://airbnb.quip.com/tRiPA86L6Nab/Deep-Learning-with-PyTorch">https://airbnb.quip.com/tRiPA86L6Nab/Deep-Learning-with-PyTorch</a></p><h3>TorchText</h3><p><a href="https://torchtext.readthedocs.io/en/latest/">torchtext doc</a></p><h3>AllenNLP</h3><p><a href="https://github.com/allenai/allennlp">https://github.com/allenai/allennlp</a></p><h3>JIANT</h3><p><a href="https://github.com/jsalt18-sentence-repl/jiant">https://github.com/jsalt18-sentence-repl/jiant</a></p><h3>MXNet/GluonNLP</h3><h3>TensorFlow</h3><h3>Tensor2Tensor</h3><p><a href="https://github.com/tensorflow/tensor2tensor">https://github.com/tensorflow/tensor2tensor</a></p><h3>FastText</h3><p><a href="https://github.com/facebookresearch/fastText">https://github.com/facebookresearch/fastText</a><br> <a href="https://github.com/facebookresearch/fastText/tree/master/python">https://github.com/facebookresearch/fastText/tree/master/python</a></p><h3>Spacy</h3><p><a href="https://spacy.io/">https://spacy.io/</a></p><h3>NLTK</h3><p><a href="https://www.nltk.org/">https://www.nltk.org/</a></p><h3>Scikit-Learn</h3><p><a href="https://scikit-learn.org/stable/auto_examples/index.html#working-with-text-documents">Working With Text Data</a><br> <a href="https://scikit-learn.org/stable/auto_examples/applications/plot_topics_extraction_with_nmf_lda.html#sphx-glr-auto-examples-applications-plot-topics-extraction-with-nmf-lda-py">Topic extraction with Non-negative Matrix Factorization and Latent Dirichlet Allocation</a><br> <a href="https://scikit-learn.org/stable/auto_examples/applications/wikipedia_principal_eigenvector.html#sphx-glr-auto-examples-applications-wikipedia-principal-eigenvector-py">Wikipedia principal eigenvector</a></p><h3>Gensim</h3><p><a href="https://radimrehurek.com/gensim/index.html">https://radimrehurek.com/gensim/index.html</a></p><h3>Misc</h3><p>Pattern <a href="https://www.clips.uantwerpen.be/pattern">https://www.clips.uantwerpen.be/pattern</a><br> Polyglot <a href="https://github.com/aboSamoor/polyglot">https://github.com/aboSamoor/polyglot</a><br> fasttext</p><h3>Common Java NLP Libraries</h3><h3>Stanford NLP</h3><p><a href="https://nlp.stanford.edu/software/">https://nlp.stanford.edu/software/</a><br> <a href="https://stanfordnlp.github.io/CoreNLP/">https://stanfordnlp.github.io/CoreNLP/</a><br> It also has a python library in <a href="https://stanfordnlp.github.io/stanfordnlp/">https://stanfordnlp.github.io/stanfordnlp/</a><br> GloVe: <a href="https://nlp.stanford.edu/projects/glove/">https://nlp.stanford.edu/projects/glove/</a></p><h3>OpenNLP</h3><p><a href="https://opennlp.apache.org/">https://opennlp.apache.org/</a></p><h3>UIMA</h3><p><a href="https://uima.apache.org/">https://uima.apache.org/</a></p><h3>Misc</h3><p><strong>GATE</strong></p><h3>Text Search and Processing</h3><h3>Lucene/Solr/ElasticSearch</h3><h3>What could be done using NLP?</h3><p><strong>Named Entity Recognition/Disambiguation</strong>: Identify the person/date/location/event etc.<br> <strong>Sentiment Analysis</strong>: Identify if the guest is happy with the trip<br> <strong>Language identification</strong>: Identify the language the guests and hosts are using<br> <strong>Text Summarization</strong>: to summarize the guest review and messages<br> <strong>Machine Translation</strong>: Translate the guest review and guest/host messages to an understandable language<br> <strong>Question Answering</strong></p><h3>Chatbot</h3><p><a href="https://www.cs.cornell.edu/~cristian/Cornell_Movie-Dialogs_Corpus.html">Cornell Movie-Dialogs Corpus</a><br> Google’s <a href="https://arxiv.org/abs/1506.05869">Neural Conversational Model</a><br> <a href="https://arxiv.org/pdf/1508.04025.pdf">Effective Approaches to Attention-based Neural Machine Translation</a> <br> Chatbot to reduce the response time of host and reduce the host’s burden.<br> For example, the guest could need to find where are the plates, the toilet paper and etc. It might already be written in the description, or the information provided by host that is no long to display in PDP page, in this case, QA could help.</p><h3>NLP Areas</h3><h3>Natural Language Inference</h3><p><a href="https://nlp.stanford.edu/projects/snli/">https://nlp.stanford.edu/projects/snli/</a><br> Annotation Artifacts in Natural Language Inference Data <a href="https://arxiv.org/abs/1803.02324">Paper</a></p><h3>Question Answering</h3><p><a href="https://rajpurkar.github.io/SQuAD-explorer/">https://rajpurkar.github.io/SQuAD-explorer/</a> (Stanford Question Answering Dataset)<br> <a href="https://web.stanford.edu/class/cs224n/slides/cs224n-2019-lecture10-QA.pdf">https://web.stanford.edu/class/cs224n/slides/cs224n-2019-lecture10-QA.pdf</a> <br> Stanford Attentive Reader<br> BiDAF: Bi-directional attentive flow for machine comprehension<br> Dynamic Coattention Networks for Question Answering<br> FusionNet<br> R-net<br> DrQA</p><h3>Sentiment Analysis</h3><p><a href="https://github.com/sebastianruder/NLP-progress/blob/master/english/sentiment_analysis.md">https://github.com/sebastianruder/NLP-progress/blob/master/english/sentiment_analysis.md</a><br> <a href="https://towardsdatascience.com/a-practitioners-guide-to-natural-language-processing-part-i-processing-understanding-text-9f4abfd13e72">Emotion and Sentiment Analysis</a></p><h3>BaseLines</h3><p><a href="https://github.com/fnielsen/afinn">afinn</a></p><h3>Models</h3><h3>BERT</h3><p>BERT(Bidirectional Encoder Representations from Transformers) Paper: <a href="https://arxiv.org/pdf/1810.04805.pdf">BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding</a><br> BERT is designed to pre-train deep bidirectional representations by jointly conditioning on both left and right context in all layers. As a result, the pre-trained BERT representations can be fine-tuned with just one additional output layer to create state-of-the-art models for a wide range of tasks, such as question answering and language inference, without substantial task-specific architecture modifications. <br> <a href="https://ai.googleblog.com/2018/11/open-sourcing-bert-state-of-art-pre.html">https://ai.googleblog.com/2018/11/open-sourcing-bert-state-of-art-pre.html</a><br> <a href="https://jalammar.github.io/illustrated-bert/">https://jalammar.github.io/illustrated-bert/</a><br> <a href="https://colab.research.google.com/github/tensorflow/tpu/blob/master/tools/colab/bert_finetuning_with_cloud_tpus.ipynb">https://colab.research.google.com/github/tensorflow/tpu/blob/master/tools/colab/bert_finetuning_with_cloud_tpus.ipynb</a><br> <a href="https://github.com/google-research/bert">https://github.com/google-research/bert</a><br> <a href="https://github.com/huggingface/pytorch-pretrained-BERT">https://github.com/huggingface/pytorch-pretrained-BERT</a><br> <br> <a href="https://medium.com/apache-mxnet/gluon-nlp-bert-6a489bdd3340">https://medium.com/apache-mxnet/gluon-nlp-bert-6a489bdd3340</a> MXNet BERT blog</p><h3>CoVe</h3><p><a href="http://papers.nips.cc/paper/7209-learned-in-translation-contextualized-word-vectors.pdf">Contextualized Word Vector Paper</a><br> <a href="https://github.com/salesforce/cove">https://github.com/salesforce/cove</a> Pytorch implementation</p><h3>ELMo</h3><p>ELMo(Embeddings from Language Models) Paper: <a href="https://arxiv.org/abs/1802.05365">Deep contextualized word representations</a><br> Microsoft is reportedly already using it with Bing.<br> <a href="https://www.slideshare.net/shuntaroy/a-review-of-deep-contextualized-word-representations-peters-2018">https://www.slideshare.net/shuntaroy/a-review-of-deep-contextualized-word-representations-peters-2018</a></p><h3>ULMFiT</h3><p><a href="https://arxiv.org/abs/1801.06146">Universal Language Model Fine-tuning</a></p><h3>OpenAI GPT</h3><p><a href="https://openai.com/blog/better-language-models/">https://openai.com/blog/better-language-models/</a><br> <a href="https://openai.com/blog/language-unsupervised/">https://openai.com/blog/language-unsupervised/</a><br> <a href="https://s3-us-west-2.amazonaws.com/openai-assets/research-covers/language-unsupervised/language_understanding_paper.pdf">https://s3-us-west-2.amazonaws.com/openai-assets/research-covers/language-unsupervised/language_understanding_paper.pdf</a><br> <a href="https://github.com/openai/finetune-transformer-lm">https://github.com/openai/finetune-transformer-lm</a><br> <a href="https://arxiv.org/abs/1511.01432">Semi-supervised Sequence Learning</a><br> <a href="https://github.com/openai/gpt-2">https://github.com/openai/gpt-2</a></p><h3>Transformer</h3><p><a href="https://arxiv.org/pdf/1706.03762.pdf">Attention Is All Your Need</a> (the Transformer) <em>Jun 2017</em><br> <a href="https://jalammar.github.io/illustrated-transformer/">https://jalammar.github.io/illustrated-transformer/</a><br> <a href="http://ai.googleblog.com/2017/08/transformer-novel-neural-network.html">Transformer: A Novel Neural Network Architecture for Language Understanding</a> Google AI Blog<br> <a href="http://ai.googleblog.com/2017/06/accelerating-deep-learning-research.html">Accelerating Deep Learning Research with the Tensor2Tensor Library</a> Google AI Blog<br> <a href="https://colab.research.google.com/github/tensorflow/tensor2tensor/blob/master/tensor2tensor/notebooks/hello_t2t.ipynb">https://colab.research.google.com/github/tensorflow/tensor2tensor/blob/master/tensor2tensor/notebooks/hello_t2t.ipynb</a><br> <a href="http://nlp.seas.harvard.edu/2018/04/03/attention.html">http://nlp.seas.harvard.edu/2018/04/03/attention.html</a></p><h3>Transformer XL</h3><p>Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context</p><h3>Attention</h3><p><a href="https://arxiv.org/pdf/1409.0473.pdf">Neural Machine Translation by Jointly Learning to Align and Translate</a><br> <a href="https://arxiv.org/pdf/1508.04025.pdf">Effective Approaches to Attention-based Neural Machine Translation</a><br> <a href="https://colab.research.google.com/github/tensorflow/tensor2tensor/blob/master/tensor2tensor/notebooks/hello_t2t.ipynb">https://colab.research.google.com/github/tensorflow/tensor2tensor/blob/master/tensor2tensor/notebooks/hello_t2t.ipynb</a></p><h3>Seq2Seq</h3><p><a href="https://jalammar.github.io/visualizing-neural-machine-translation-mechanics-of-seq2seq-models-with-attention/">https://jalammar.github.io/visualizing-neural-machine-translation-mechanics-of-seq2seq-models-with-attention/</a><br> <a href="https://papers.nips.cc/paper/5346-sequence-to-sequence-learning-with-neural-networks.pdf">Sequence to Sequence Learning with Neural Networks</a><br> <a href="http://emnlp2014.org/papers/pdf/EMNLP2014179.pdf">Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation</a><br> <a href="https://github.com/tensorflow/nmt">https://github.com/tensorflow/nmt</a></p><h3>RNN/LSTM/GRU</h3><p><a href="https://colah.github.io/posts/2015-08-Understanding-LSTMs/">Understanding LSTM Networks</a><br> <a href="https://karpathy.github.io/2015/05/21/rnn-effectiveness/">The Unreasonable Effectiveness of Recurrent Neural Networks</a></p><h3>Word Embedding</h3><p>Glove and Word2vec<br> <a href="https://arxiv.org/pdf/1301.3781.pdf">Efficient Estimation of Word Representations in Vector Space</a> Tomas Mikolov <strong>CBOW(</strong>Continuous Bag of Words<strong>)</strong></p><h3>Early work</h3><p><a href="http://www.jmlr.org/papers/volume3/bengio03a/bengio03a.pdf">A Neural Probabilistic Language Mode</a> Yoshua Bengio</p><h3>Datasets</h3><h3>GLUE</h3><p><a href="https://arxiv.org/pdf/1804.07461.pdf">GLUE: A MULTI-TASK BENCHMARK AND ANALYSIS PLATFORM FOR NLU </a>GLUE Paper<br> GLUE Baselines: <a href="https://github.com/nyu-mll/GLUE-baselines">https://github.com/nyu-mll/GLUE-baselines</a><br> <a href="https://gluebenchmark.com/tasks">https://gluebenchmark.com/tasks</a></p><h3>QNLI</h3><p>SQuAD (Stanford Question Answering Dataset) <a href="https://rajpurkar.github.io/SQuAD-explorer/">https://rajpurkar.github.io/SQuAD-explorer/</a><br> The task is to determine whether the context sentence contains the answer to the question. <br> indexquestionsentencelabel0What came into force after the new constitution was herald?As of that day, the new constitution heralding the Second Republic came into force.entailment1What is the first major city in the stream of the Rhine?The most important tributaries in this area are the Ill below of Strasbourg, the Neckar in Mannheim and the Main across from Mainz.not_entailment2What is the minimum required if you want to teach in Canada?In most provinces a second Bachelor’s Degree such as a Bachelor of Education is required to become a qualified teacher.not_entailment3How was Tem√ºjin kept imprisoned by the Tayichi’ud?The Tayichi’ud enslaved Tem√ºjin (reportedly with a cangue, a sort of portable stocks), but with the help of a sympathetic guard, the father of Chilaun (who later became a general of Genghis Khan), he was able to escape from the ger (yurt) in the middle of the night by hiding in a river crevice.[citation needed]entailment</p><h3>MRPC</h3><p>MRPC The Microsoft Research Paraphrase Corpus (Dolan and Brockett, 2005) is a corpus of sentence pairs automatically extracted from online news sources, with human annotations of whether the sentences in the pair are semantically equiv- alent.</p><h3>QQP</h3><p>QQP The Quora Question Pairs3 dataset is a collection of question pairs from the community question-answering website Quora. Given two questions, the task is to determine whether they are semantically equivalent.</p><h3>STS-B</h3><p>The Semantic Textual Similarity Benchmark</p><h3>SST-2</h3><p>SST-2 The Stanford Sentiment Treebank</p><h3>COLA</h3><p>The Corpus of Linguistic Acceptability</p><h3>MNLI</h3><p>MNLI The Multi-Genre Natural Language Inference Corpus</p><h3>RTE</h3><p>RTE The Recognizing Textual Entailment (RTE) datasets come from a series of annual challenges for the task of textual entailment, also known as NLI. The task is to predict if the premise entails the hypothesis.</p><h3>WNLI</h3><p>WNLI The Winograd Schema Challenge (Levesque et al., 2011) is a reading comprehen- sion challenge where each example consists of a sentence containing a pronoun and a list of its possible referents in the sentence. The task is to determine the correct referent.</p><h3>SQuAD</h3><p><a href="https://rajpurkar.github.io/SQuAD-explorer/">https://rajpurkar.github.io/SQuAD-explorer/</a><br> SQuAD is a collection of 100k crowdsourced question/answer pairs <br> Given a question and a paragraph from Wikipedia containing the answer, the task is to predict the an-swer text span in the paragraph. For example:</p><pre>• Input Question:<br>     Where do water droplets collide with ice<br>     crystals to form precipitation?<br>• Input Paragraph:<br>     ...  Precipitation forms as smaller droplets<br>     coalesce via collision with other rain drops<br>     or ice crystals within a cloud.  ...<br>• Output Answer:<br>     within a cloud</pre><h3>SWAG</h3><p>SWAG: Situations With Adversarial Generations <a href="https://rowanzellers.com/swag/">https://rowanzellers.com/swag/</a> EMNLP 2018<br> The Situations With Adversarial Generations (SWAG) dataset contains 113k sentence-pair com- pletion examples that evaluate grounded common- sense inference (Zellers et al., 2018). <br>Given a sentence from a video captioning dataset, the task is to decide among four choices the most plausible continuation. For example:</p><pre>A girl is going across a set of monkey bars.  She<br>(i) jumps up across the monkey bars.<br>(ii) struggles onto the bars to grab her head.<br>(iii) gets to the end and stands on a wooden plank.<br>(iv) jumps up and does a back flip.</pre><h3>CoNLL 2003 NER</h3><p>CoNLL 2003 Named Entity Recognition (NER) dataset<br> <a href="https://www.clips.uantwerpen.be/conll2003/ner/">https://www.clips.uantwerpen.be/conll2003/ner/</a></p><h3>Choice of Plausible Alternatives (COPA)</h3><h3>RACE</h3><p>RACE: Large-scale ReAding Comprehension Dataset From Examinations from CMU</p><h3>ROCStories</h3><p><a href="http://cs.rochester.edu/nlp/">http://cs.rochester.edu/nlp/</a></p><h3>Transfer Learning</h3><p><strong>Core problem</strong>: Which task is most representative of the space of NLP problems? In other words, which task allows us to learn most of the knowledge or relations required for understanding natural language?</p><h3>References</h3><p><a href="https://www.analyticsvidhya.com/blog/2017/10/essential-nlp-guide-data-scientists-top-10-nlp-tasks/">https://www.analyticsvidhya.com/blog/2017/10/essential-nlp-guide-data-scientists-top-10-nlp-tasks/</a><br> <a href="https://arxiv.org/pdf/1603.01360.pdf">Neural Architectures for Named Entity Recognition</a><br> <a href="https://github.com/xiamx/awesome-sentiment-analysis">https://github.com/xiamx/awesome-sentiment-analysis</a><br> <a href="https://github.com/keon/awesome-nlp">https://github.com/keon/awesome-nlp</a><br> <a href="https://web.stanford.edu/class/cs224n/">https://web.stanford.edu/class/cs224n/</a><br> <a href="https://web.stanford.edu/class/cs224d/">https://web.stanford.edu/class/cs224d/</a><br> <a href="https://web.stanford.edu/class/cs234/">https://web.stanford.edu/class/cs234/</a> Reinforcement Learning<br> <a href="https://thegradient.pub/nlp-imagenet/">https://thegradient.pub/nlp-imagenet/</a><br> <a href="https://openai.com/blog/language-unsupervised/">https://openai.com/blog/language-unsupervised/</a><br> <a href="https://github.com/sebastianruder/NLP-progress">https://github.com/sebastianruder/NLP-progress</a><br> <a href="http://nlpprogress.com/">http://nlpprogress.com/</a><br> <a href="https://jalammar.github.io/illustrated-transformer/">https://jalammar.github.io/illustrated-transformer/</a><br> <a href="https://jalammar.github.io/illustrated-bert/">https://jalammar.github.io/illustrated-bert/</a><br> <a href="http://web.stanford.edu/~jurafsky/slp3/">http://web.stanford.edu/~jurafsky/slp3/</a> Speech and Language Processing<strong> </strong>(3rd ed. draft)<br> <a href="https://arxiv.org/abs/1708.02709">Recent Trends in Deep Learning Based Natural Language Processing</a> Paper</p><h3>Papers</h3><p><a href="https://arxiv.org/abs/1405.4053">Distributed Representations of Sentences and Documents</a><br> <a href="https://arxiv.org/abs/1511.01432">Semi-supervised Sequence Learning</a><br> <a href="https://arxiv.org/pdf/1706.03762.pdf">Attention Is All Your Need</a> (the Transformer) <em>Jun 2017</em><br> <a href="https://arxiv.org/pdf/1810.04805.pdf">BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding</a><br>ELMo Paper: <a href="https://arxiv.org/abs/1802.05365">Deep contextualized word representations</a><br> ULMFiT Paper <a href="https://arxiv.org/abs/1801.06146">Universal Language Model Fine-tuning</a> <br> OpenAI GPT Paper: <a href="https://s3-us-west-2.amazonaws.com/openai-assets/research-covers/language-unsupervised/language_understanding_paper.pdf">Improving Language Understanding by Generative Pre-Training</a></p><h3>Airbnb Internal</h3><p><a href="https://medium.com/airbnb-engineering/discovering-and-classifying-in-app-message-intent-at-airbnb-6a55f5400a0c">https://medium.com/airbnb-engineering/discovering-and-classifying-in-app-message-intent-at-airbnb-6a55f5400a0c</a><br> <a href="https://www.kdd.org/kdd2018/accepted-papers/view/real-time-personalization-using-embeddings-for-search-ranking-at-airbnb">https://www.kdd.org/kdd2018/accepted-papers/view/real-time-personalization-using-embeddings-for-search-ranking-at-airbnb</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e964f5d740e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>