1. Home
  2. Explore
  3. Computer Science
  4. Natural Language Processing

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Natural Language Processing

Transcript

Hi, my name is Christopher Michael Stewart and I'm going to be presenting today On data science, human language technology, and natural language processing. So just a little bit about me. I did a PhD in French linguistics at the University of Illinois, then worked for a few years as an Assistant Professor of French Linguistics at the University of Texas at Arlington in the Modern Languages Department.

I then left that job and worked as a voice engineer in the text-to-speech research and development division at Nuance, which is now called Cerence in Belgium. And while I was there, I developed the Siri voices, took on a major customer facing role, and had a lot of good beer in Belgium. Then, I left that job and got two jobs as a Senior Data Scientist. First, I worked at Tata Consultancy Services in Arkansas, developing a Machine L earning pipeline for Walmart, and then worked at a tiny startup called Narrativewave doing time series modeling of Industrial Internet of Things data. I now work at Google as a Computational Linguist

and my team works on detecting policy violations at scale, best practices for crowdsourcing tasks, and I build automated data quality reports. before I go much further I'll mention that I am not speaking on behalf of Google here. I'm only talking about my experience and background. So i've set myself up the impossible task of, in 45 minutes, talking about data science, human language technology, and natural language processing. Each one of these is an entire

career's worth of information, and there's no way I could possibly do much justice to all three of these fields in 45 minutes. So what I've aimed to do then is hit the sweet spot between these three fields. So what do these have in common? I'm going to tell you what I think that they have in common is something that I'm here calling “Predicted Probability”. So these are all fields That are all about modeling, statistical modeling, in particular machine learning, and trying to

figure out something, make some sort of inference about the future, and use data to predict that. So what does that look like? So here, I have Predicted Probability and then ML, so Machine Learning or Deep Learning DL and really more Deep Learning than Machine Learning. So under that I put the short names for these that I'm going to be using: DS, HLT and NLP. I put some examples of what's called Conditional Probabilities. So a probability is denoted by P open parentheses, the probability of some event. So the probability of a fair coin coming up heads is 0.5. But you can also condition probabilities on things. In Data Science, if you're working as a Data Scientist for instance at Tesla or somewhere like that, you might be interested in predicting what is the probability that an object that appears in front of a car will be a human. So it's a predicted,

“will be a human?”. And it's probabilistic: What is the probability this object is a human given Data coming from thousands of sensors, Historical data, metadata, all sorts of stuff. If you're working in Human Language Technology and you're working for a Text-To-Speech synthesis team you might have a whole bunch of segments, a whole bunch of cut up vowels and consonants and things like that, and you'll be interested in predicting, “What is the probability that a segment is good for a Text-To-Speech synthesis context given a language model's spectral specifications, duration, focus (narrow or broad focus), part of speech, etc. if you work in NLP, you might be interested in predicting what is the probability that a tweet will have hate speech given metadata about the tweet, the actual content, the language in the tweet, the time it was tweeted, the place it was tweeted, who retweeted it, how many retweets did they get,

all this sort of information. So this is the sort of world that you will live in. So I'm going to start this talk talking about probability and predicted probability in Machine Learning. And this is probably very different from the other talks that you've been to because I'm really going to start by the part that you might not know very much about and work back in the second half of the talk to an actual language context. But we're going to start with talking about probability and machine learning and things like that. So if you don't like that I'm sorry but it is the common thread here amongst these three subject areas. So before I start though, before I go too in-depth here, I just want to emphasize that if you have never taken Statistics or have no idea what Machine Learning is or are afraid of equations or you know whatever the case may be, don't worry. Just try and absorb the ideas here. For instance, this

conditional probability event, you can imagine what is the probability that it’s going to rain on this coming Friday. You might have some sort of naive probability, but if I tell you that it's Monday, you might have a very different prediction than if I tell you it's Thursday. Closer to the time, we have a better idea of what's going to happen. So just try and engage with the Ideas, even if it's you know sort of foreign and seems odd or hard to get, just try and get some of the ideas. Don't worry if you don't get all of the particulars. Okay, think to yourself: have you ever taken a class in Statistics? I can only see a few people raise your hand if you have a Statistics class. If you haven't had a Statistics class, no worries not a problem. But the interesting part for our purposes about statistical modeling is that- So statistical modeling is when you take a set of data and you try and build a model to do something

and you know the famous quote, “All models are wrong but some are useful”. So the point is to try and figure out something with this model. Typically in social sciences we build models. We collect data, language data in this case, for instance. And we build a statistical model, mathematical model that of that data. And we assume that this model tells us something about what is going on in the data. So for instance, if you have a regression model, you'll have parameters in your regression model, and it will tell you something about how predictive is someone's language background of the language that they use, or something like that. So we assume that these models reflect some sort of underlying process. Because of that, we're very interested in the parameters. The parameters are the important parts, the interesting parts about the model. Does someone's age tell you more than their L2 or whatever about some sort of linguistic behavior?

Because we're interested in parameters, we prefer simpler models in this statistical modeling culture. And this is prevalent in causal research but not so much in engineering. I forgot to mention that this I'm taking this from a paper by a statistician named Leo Breiman 0:07:50.080,0:07:53.200 called “Statistical Modeling: The Two Cultures” and it's helpful for seeing how these two cultures differ. So that's data modeling and if you've taken “Introduction to Statistics”, you've talked about things like this about t-tests, ANOVAs, regressions logistic regressions, and all that sort of stuff. So there is a different culture of statistical modeling that Leo Breiman in this paper calls Algorithmic Modeling. In Algorithmic Modeling, we do not assume that the model that we build reflects some sort of underlying process.

There's no assumption that what comes out of the model tells you about reality. We’re not really interested in that. What we're interested instead in is prediction. We're interested in predicting what's going to happen with this data that we have from the past. Because of this, we don't really care about the model being simple. Because we're not really interested in what's going on in the model all the time, we're more interested in prediction. So not afraid of black box models, models that we don't really know what's going on necessarily in every tiny little part of the model. This needs lots of training data and lots of computational power typically. Now if you've never heard of this algorithm modeling sort of world and Deep Learning and Machine Learning and all that sorts of stuff but you have taken a statistics class, there is an intermediate between these two. It's a field called statistical learning and there is a book written by Hastie and Tibshirani called “Introduction to Statistical Learning” that I really recommend here if you've never read it or don't have any familiarity with it.

Okay, so let's talk a little bit about Machine Learning. So Machine Learning, great buzzword, what does it mean? In traditional programming you take input, You make a program, and you get results. So for instance, a popular coding problem is to say “Write a function where you give this function input a number, and if the number is divisible by 5 you output “fizz”. and if the number is divisible by 7 you output “buzz” or something like that. So you have input, an integer; a program, this thing that says, “Is this number divisible by five? Is this number divisible by seven”; and output, something, it does something. Machine Learning is a little bit different because we take input & results and we put them into a Machine Learning model and what comes out of it is something like a program. So it's important to note that this has nothing to do with language.

This is basic binary classification. So you could be looking to classify- I have this funny sort of toy example of “Is this a chihuahua or a muffin?” But you could be looking to predict is it going to rain or is it not going to rain? Is this person likely to click on this link or not click on this link? Or whatever any sort of binary classification. So for the purposes of this little demonstration, we're going to talk about this funny toy problem in visual binary classification which is, “Is this picture a chihuahua or muffin?” I took this picture from an article where you can see that actually chihuahuas and muffins are not always that easy to disambiguate, which is kind of scary. So if we want to build a classifier with this what would we do? Well, we need labeled data. So we need an image 1, an image 2, an image 3, an image 4, where we indicate,

is this thing actually a dog or a muffin, or a muffin or a dog or whatever, and we put that into a model, and the program that comes out of it we'll just call for now “Dog or Muffin” So we build a classifier and then we use it. So we start with what's called “training data” in these four instances here: images 1, 2, 3, and 4, and we put a new, an unseen image into this and use the classifier. So I ask the classifier - I mean, not literally - but we have the classifier predict is this a dog or a muffin? For instance, in one case it could say, “I'm 95% sure that this is a dog.” We look at the expected results. So if we

put another image - image 6 - in, it says, “Look I'm 55% sure”. So not really all that sure but 55% sure that this is a dog. And we look at the expected results: oh it's a muffin! So the model wasn't real confident that it was a dog and that's good because it wasn't a dog, it was a muffin. So we can do this over and over again, image 7, image 8. Image 7, 64% chance it's a dog. Image 8, 92% chance that it's a muffin. We're wrong with image 7 and we're right with image 8, and you can go through this over and over and over again. This is called “reinforcement”. So this is kind of the basic intuition behind how this works. And you can see that we're interested here is predicting. So I don't really care what's going on in dog or muffin. I don't really care that the model is looking for ears in an image or how bright or dark the image is or whatever. It doesn't really matter. I'm really interested in how accurate the model is at predicting whether the image is a dog or a muffin.

So, just to reiterate. First of all, trigger warning: the next slide does have equations. So if you're scared of betas and x's and y's and things like that and Greek letters of all sorts, avert your eyes on the next slide. So in the data modeling culture, we're most interested in understanding what the model tells us about the data-generating process. So if you collect data about language usage, you will put into this model a whole bunch of information that you think helps you understand what's going on. So you're interested in in the data generating process. All data goes in the model and you're not really concerned with prediction. If you go to publish an article, the editors are never going to come to you and say. “Hey look, I found this other the speaker that you didn't “talk to who has these characteristics. Please put those characteristics in the model and

“tell me how predictive they are of this person and I'll tell you if you got it right or wrong.” That will never happen because that's really not the point. You're really interested in what's going on in the data generating process. So in the algorithmic modeling culture we're primarily concerned with prediction so your priorities change. So in this sort of world some data could help you make better predictions and some data can in fact help you make worse predictions. You can end up in instances where you have not very many observations but millions and millions and millions of variables, like genetic arrays. And genetic testing is a good instance of this. Sometimes you only have a few samples of a gene but you have as many – I don't really know that much about genetics - but as many of the little pairs or whatever, of gene doodads- sorry it's a long it's

it's late in the day, I'm not very eloquent here, but you get my point. So sometimes you have more variables than you do observations and that might be a problem for your model. So what might you want to do? Well, if you were one of the people who earlier said that they had had an introduction to statistical modeling class, you will be familiar with this data modeling equation: y = (beta naught) + (beta 1 X 1) + (beta 2 X 2) + beta all the way to beta p X p. And if you've never seen this and this looks confusing and crazy, don't worry about it. Imagine that you want to predict height given weight. You'll have an x and a y axis. On the x-axis might be height and the y-axis might be weight or vice versa, it doesn't really matter. And you would have a whole bunch of points there. And I tell you, “Hey look, I want you to predict a new person that you haven't seen, given height and weight.

“And I'm going to put this one point in here on the y-axis, and I want you To tell me what the x-axis will be. Well that's what you have here. You have the y, the thing that you want to predict, the x's are the things that you already know, and the betas are the weights on those things. And what you want to do is you want to draw a line that minimizes the distance between all those points. and that line is called the “line of best fit”. So that's this minimizing RSS, you want to minimize the residual sum of squares.

Now let's say that you have so much data that you actually have a problem, because some of those x's are not very useful. So you want to be able to adjust these betas. This whole thing, this is machine learning. This is called ridge regression. The equation is the exact same, except you add this little penalty term here at the end that says, “Look, don't let my squared betas get too big” and this lambda parameter - upside down y - allows you to sort of turn a volume knob on all

these betas. So it's very simple, it's a very simple thing and that has then taken you from statistical modeling, sort of the data modeling world, to machine learning. Now, obviously that's not really the state of the art. The state of the art is something much more complicated algorithmic modeling. Here, you have like a basic neural network and this is what the state of the art is. So this is what the people who sort of build these production models at big companies, this is what they do, which is just one iteration a slight bit more complicated. But what I'm trying to impart here is that if you understand ordinary least-squares regression, this top equation, you can easily go to statistical learning which is this next one just by understanding what's going on in the model. And then once you understand that, with a little bit more work, you

can go to this algorithmic modeling world. So the intuitions here again are very simple. You can have a model that doesn't do a good job of predicting. It kind of makes random predictions, or you can have a model that's very in tune to this training data, that really understands all of those chihuahua and muffin pictures that we showed to it, but if I show a new picture it doesn't know it has no idea if it's a chihuahua or muffin. So you want some sort of sweet spot where you're not making completely random predictions but your predictions aren't so closely tuned to that training data that it doesn't generalize. So you want to find this minimum error here and that's this is referred to as the bias variance tradeoff.

So wrapping up our discussion of machine learning here, how effective is modern machine learning? Well, deep learning - I put a few links here you're welcome to copy them down and find the articles - it's not always great. I mean, as you probably have experienced in life but it is quite good. There's a massive need for labeled data and who labels this data and how do we ensure that their labels are good? Well, now we're getting to our world. Linguists are actually pretty good at getting data from humans right? and so linguists often work on this in industry.

So this is you know maybe more than you have sort of taken on in in your explorations of statistics. So how can you start learning about machine learning? The important thing is to remember that all Approaches, even the most complex deep mind model that you can possibly imagine, has x's and y's. It has things you want to predict and things you already know. It has weights that go on the x's that predict the y's. And it has error, the model is wrong and you want to quantify how wrong the model is. So if you want, remember that all these approaches have these ingredients. If you want to start learning about machine learning you can develop some ins develop some statistical intuitions. Remember that the basic inferential statistics will serve you well going forward. Do your own analyses as much as possible. Make sure that you understand ideas like statistical assumptions,

normality tests, model assessment. Don't just go to Stack Overflow and enter in some R code that someone tells you builds a linear mixed-effects model. That will not serve you well. Read “An Introduction to Statistical Learning” if you want to go beyond inferential statistics. If you're already there and you're looking for something more complex, find “Bayesian Data Analysis”. And if you want more complex than that, then you're in the wrong Place, because this talk is not for you. Okay, so that was the part about machine learning. Thank you for sticking with me through statistics. Let's talk now about natural language processing. So now we're going to turn to language. How are these machine learning models used in natural language processing? This section is just a brief peek into the kinds of consideration that go into an NLP pipeline. This is not state of the art NLP, this is like

if you want to learn python and you start and they say, “Okay, define a variable, “that's a string and now capitalize the string”, that's kind of this equivalence. I'm not proposing to you that this is like state of the art, incredible NLP. Knowing these things is not going to get you a job but it is a peak into this world. So what is involved in natural language processing? This is just a sample sort of pipeline of things you might want to do if you were building a natural language pipeline with two sentences: “Moscow has “also denounced what it described as the rise of quote ‘nationalist and neo-fascist “sentiment’ in Ukraine's western areas where it said Russian speakers were being deprived of rights. It has “repeatedly expressed concern for the safety of Russian citizens in Ukraine.” So the first thing that we might be interested in here is defining sentence boundaries. The sentence

boundary, a very naive approach would be to say anytime you see a period that that's the end of a sentence. That's going to be problematic, right because if we have something like A.D., some sort of an abbreviation or U.S.A., or something like that, you could have periods that are not sentence boundaries. So again, you're going to need to train a probabilistic model that tries to predict when sentence boundaries are. And sometimes you'll be right and sometimes you'll be wrong. And the next thing you might want to do is to divide all this sentence up into tokens. What are tokens? Tokens are something like words

but importantly they may not always align with what you think of as a word boundary. So one interesting thing that I see right away here is this “Ukraine”, so “Ukraine apostrophe s”. Most people would say that's a word, but for the purpose of tokenization we might be interested in saying that this apostrophe s which indicates possession is a separate token. So again this is something that you're going to have to model probabilistically. After this, part of speech tagging. I think part of speech tracking - I have a speaker note here but I can't see it - but I think part of speech tagging, the state of the art in English is something like 98% correct. So again, this is an instance where you would build a model and probabilistically predict what these parts of speech are. Syntactic parsing, I'm sorry if

you're a syntactician but I'm just going to skip over this in the interest of time and move on to entity detection. so I've started at sort of a very low-level tokenization, then part of speech tagging, going up further syntactic parsing, and then even further up than that to entity detection. So you can see that you want to be able to model the fact that some of these are sort of related to each other. So “Moscow” and “it” have some sort of relationship, etc. So this is called entity detection or named entity recognition, you might want to cluster them so that “Moscow” and “it” are clustered, “what” and “rise”, “Ukraine”, etc. So these are just the kinds of considerations that you would want to take into account if you're going to model, if you're going to have a computational representation of what's going on in these two sentences. All of these are predicted using deep learning models in

State-of-the-art natural language processing. If you're interested in deep learning models remember this guy at the bottom here. That's a a visual representation of a deep learning model. This and subsequent steps are typically implemented by research scientists and computer engineers. It's not often the case that linguists - because we are not really trained in math and computer science and things like that - are writing these models from scratch. And anymore, a lot of this, it used to be the case that hyperparameter tuning and things like that you had to do by hand but increasingly even that is solved by the computer by just grid search and things like that. Linguists therefore contribute domain knowledge to identify rules and identify areas for improvement. Linguists have a lot of experience with what language should look like, and so when the model gets something wrong are pretty good at saying, “Hey I think that this is what the problem is.”

And once you have enough of those you can identify rules. You can say, “Hey look, “it looks like the model is not great at dealing with possessives,” or whatever the case may be and linguists also work to provide annotated data that train these automated processes. So you might think oh wow this is all pretty impressive. So NLP is pretty much is what people call a solved problem right? Well, not necessarily. You probably recognize that you know a lot of machine learning can kind of go wrong and do wonky things.

The other day I was working on something and tried to get some sort of digital personal assistant to play a song and I said the name of the song in Spanish. So like “Please play the song ‘Voy a perder la cabeza por tu amor’ and it says “Here's what that is in Spanish,” and then just translated whatever I said in Spanish. So why didn't it get it right? Well, there are some things that are pretty challenging for natural language processing. Let's consider this passage really quickly. “The police arrested Mayor John Smith yesterday. He was “suspected of stealing garden gnomes, the latest breach in a crime wave rocking the “sleepy town of Springfield.” So if we think about abstract representations of these sentences, you can start to see that there are things that are a little bit difficult. So those things look like this. The fact that we have co-reference to entity,

like “Mayor John Smith” and “he”, “the police” are tied to the “town of Springfield”. If we look at this sentence ontologically, how do we want to represent something like Mayor John Smith? Is this an instance of a mayor whose name is John Smith or should it be John Smith and his occupation is mayor? What is the sort of preferable representation here in terms of salience? We have these event relations, so the fact that

we know as humans and language users that “suspected” comes before “arrested” - normally someone is suspected of something and then they're arrested - but a computer doesn't know that. You have to engineer that. These are inferences that require real-world knowledge of criminal processes. Also the fact that there is something like subjectivity. That someone can be suspected of something, that's sort of a subjective call, that's a subjective consideration. And we understand that but computers

don't really understand that. Ditto for things like a “crime wave” that “rocks”. How do we represent the fact that this is metaphorical usage and that the town of Springfield is not actually “sleepy”? It's not that it wants to take a nap, it's a way of saying that a town is calm and you know sort of bucolic. Ditto from metonymy. These are challenges for modern natural language processing. So starting to wrap up here, this has all been a lot of information, I'm sorry to sort of-

I've gone through it relatively quickly. I don't know if we do questions, is there a question period, does anyone know? I've not done one of these yet. But I guess we'll see at the end. I think there is, right? Because you guys can put questions in the chat, hopefully. In any case, happy to go back through parts that might have been a little tough. But let's talk just briefly before that about what you can start doing now so let's say you're in a master's program and you Think, “oh this NLP stuff seems kind of cool, I've taken an introduction to Python and and I took statistics 101, what should I do next?” The first thing is you got to do a lot of independent learning. This is not the sort of thing where you turn up and you know someone gives you a job and you know immediately you have a job for 50- You have to invest a lot of your own time into learning things here. So learn how you learn best that's the first step

i was in the office hours the other day and you know several people said, “Hey you know, I'm taking Introduction to Python “and I'm sort of interested but it's boring and it's hard to stick to and I just don't really “like it that much,” and my advice was, hey, then find a project, figure out some sort of project that you're actually interested in. Like, I'm interested in, I studied Georgian or something and it has this very interesting syntactic property and I want to build something that can predict that or I want to suggest a better way for

my favorite software package that handles Georgian to better model, whatever it is. Find a project and contribute to that project. A lot of natural language processing software is open source so you can find the people that develop it, take the code, it's called forking the code. You just make a copy of the code, look at it, change the part that you want, and send the change back to the person who develops the code. That's called a pull request. And say, “Look I really admire your work and think it's very cool but I've found something that I think can be improved. Please take a look and see what you think.” How do you measure progress? You know, you're going to have to present what you've done in the past and what you want to do in the future and give some sort of indication of the progress that you've made on your various projects. And that's going to be extremely important when you go into industry. This works

really well for technical skills. You can say. “I've taken Intermediate Python and I have “this change and this change that I made to the natural language toolkit package (NLTK) “that are now in production.” So it works really well for technical skills. Next, do side projects. So find problems like I mentioned and fix them. You know, it's not always the most glamorous and interesting work but it's what you're going to be doing if you get a job in one of these fields. So find a problem and fix it. There's paid work. So big tech companies for instance hire paid interns every summer. And there's volunteer work. I mean, you know what I said about working on something like NLTK, that's free.

I mean, you sacrifice your time, you get something out of it, you get Experience. Maybe the most important of all of these things is to keep records of what you did. It's nice to tell people, “I know about statistics, I know about programming, I know about this, “I know about that,” but it's more convincing if you can point to things you actually did. And if you want to be able to point to things you actually did, the way you would do that is you make a web page, a personal web page. You make what's called a repository, a code repository. You point from your web page to the repository and the repository has project 1, project 2, project 3, project 4, project 5, and the web page does a beautiful job of explaining here’s what project 1 does, what project 2 does, what project 3 does. And for each one of those projects, you can point to all the code that you wrote to do the project. So you really

want to be able to prove that you have whatever kinds of experience that you have. So it's really important to keep records, really really important to keep records. Next, find chances to use new tools. Be sophisticated about data. So this goes back to the slide where I said look, make sure you understand the models that you're building. S lot of people build statistical models and have no idea what they mean. Don't be one of those people. Be sophisticated about data. Apply for an internship. Like I said, there are a lot of companies in tech that hire interns to do you know things like Text-To-Speech synthesis and

automatic speech recognition and natural language processing and all sorts of stuff like that. So apply for an internship. Automate your drudge work. So is it the case that you are working on an R script that is now 3,000 lines long that has all of your dissertation research in it? If so, stop doing that! Figure out ways to write functions and then call the functions and write unit tests to test your functions so that you know that they're working as intended. Automate your drudge work. And finally, prove it. Make artifacts and understand impact. If I can just impart one thing to you through this session, it's that if you're interested in this sort of line of work, make sure that you can show people your work. That's very important. It's nice to say “I learned Python”. It's a lot better to say “Look at all these contributions that I have to NLTK. It's very easy to sit there and sit through an introduction

To python class, it's much more difficult to go and contribute to a software package. But one will show people that you know what you're talking about, and the other is kind of like, well maybe they know something about python, maybe they don't, who knows. So I think that that's where I've stopped here. But I thank you for your time and we have about 10 minutes left for questions. [Aubrie] Hi Chris, thanks again. So I was just wondering for those of us who have taken like a compositional semantics course, what kind of keywords, how can we parlay that into relevant language that people in these companies would understand what we actually worked on. [Chris] From a computational semantics course? [Aubrie] Compositional semantics. It's seems like it's very familiar - I think it's very related, it's like identification and everything. [Chris] So one thing I think that

compositional semantics is about is ontologies. Presumably you worked on ontologies and embeddings and things like that, maybe a little bit? Okay, that's kind of the currency of the realm in natural language understanding. So natural language understanding is kind of the province of like the digital personal assistants and things like that. So if I tell my Google Home or Alexa or whatever “I love my mom. Why don't we call her now?”,

you need some sort of representation, an ontology that says “mom” is referred to as “her”, however you want to envision it. So natural language understanding is a good and has the sort of added benefit that it's a very hot field right now. They're hiring lots of linguists to make lots of ontologies. So that's one key word you can look for is ontology. I wish I knew more about compositional semantics. [Aubrie] I think it's very helpful for it. We're doing translation into working with computational because we use lambda functions in order to figure out how interrelated everything is, so I think it's pretty close.

[Chris] Great. [Marcus] You have a couple of questions in the chat. First, would you suggest to put academic output together with side projects on our website? [Chris] Yeah, for sure, definitely. there's nothing wrong with talking about what you've done in academia. So my first job outside of academia was in text-to-speech research and development, and the director of the org that I was joining said yes send me all your academic articles, I'd love to read them and then I turned up for the interview and he said oh thank you for coming. By the way I didn't read any of your articles. So don't expect that people are going to read

seven 50-page articles because you're interviewing with them they're not. But there's nothing wrong with putting the fact that you wrote an article that's in Language or Journal of Sociolinguistics or whatever on your website. It certainly is impressive. I mean, it points that you can make deliverables but it's probably not realistic to expect everyone to read off your articles. That's just not how industry works. [Marcus] Is it necessary to learn Python for NLP work? I've done some Java at beginner level. Can I use that? Chris: Yeah, it's certainly not necessary to learn Python. Python is nice because it's very simple. It's a scripting language, a high-level scripting language, so it has the benefit of being relatively easy to read compared to Java, which - I'll be honest, I look at Java and think public class this, public class that, I have no idea what all that stuff means

and it's hard to follow. So if you've already done Java, Python should be a piece of cake. So it's certainly not necessary to learn Python for NLP work. [Marcus] In your experience, are there opportunities to work on these kinds of projects with the team strictly as a linguist without having coding knowledge. [Chris] Yeah, I get this question all the time. Do I need to know how to code? And the truth is you don't need to know how to code but if you are not willing to interact with- If you're going to work in tech you're going to work on a team, you're going to work with engineers. There are engineers in every- the engineers the ones

who actually do the stuff, they write the code that makes things work that people use. So if you're not willing to engage with the ideas and code and you sort of throw your hands up, you're gonna make a rod for your own back. So you don't have to strictly speaking know how to code but it is always going to help you. Tt will never ever ever hurt you to know how to write code. And generally speaking you don't have to know it but it will always help you. [Marcus] The next question asks where would I go to look for side projects for linguistic annotation that might be a few hours per week?

[Chris] This is a great question. I mean, I don't really know, I've not done it but at the companies that I've worked at we contracted with vendors who sourced or who hired people who did the annotations. So when I was at Nuance I think that we worked with Appen which is - either was Appen Butler Hill or is now Appen Butler Hill. so that's one. Lionbridge I know does this too, and there are a variety of companies that do this sort of thing.

[Marcus] The next person would like to know the name of the statistical learning book that you mentioned earlier in your presentation. Chris: The authors of that book are Hastie and Tibsharani and the book is called “An Introduction to Statistical Learning”. And that's sort of the the nice reader-friendly part. There's also one called “Elements of Statistical Learning” that is much more in-depth. Could you or someone else add to the chat? So yeah, “Introduction to Statistical Learning”. [Marcus] And

next question: Will linguists become more or less relevant in the future of NLP? [Chris] This is a great question. I mean, I don’t have a crystal ball and obviously don't really know. But I think that as NLP ventures into more and more uncharted territory, linguists will become more and more relevant because linguists understand how humans use language. That's kind of our superpower and the more we get into difficult questions of language and wanting to model that, the more linguists skills, a linguistic skill set will be valuable. So my prediction is more, but it's a probabilistic thing. I don't really know.

[Marcus] The last question that's in the chat at the moment is I'm a linguist and I'm learning data science. How can I make sure that my new knowledge of data science makes me eligible for jobs in computational linguistics at companies like Google? [Chris] How can I make sure that my new Knowledge of data science makes me eligible? Well, to some extent like this distinction that I've made here between natural language processing, data science, and human language technology is artificial. So you have people whose job title is data scientists that work on language things and people that do human language technology who are engineers, who don't really know anything about linguistics,

So I guess I'm trying to say is if you are learning about building models and statistical models and being sophisticated about using data then there's no way that your work here cannot make you competitive for jobs or not making more competitive, more eligible for jobs in fields like computational linguistics at companies like Google. [Marcus] And next question, any exciting projects you're working on right now? Any suggestions for Youtube channels or Twitch channels for watching coding live streams?

[Chris] So I can't really talk that much about what I'm working on now, it's highly proprietary. But I can tell you that I work in the ads org, which is probably the most profitable machine on the face of the earth right now. So that's kind of interesting. Suggestions for Youtube channels. I don't know, I'm old, I read books. And Twitch, I almost don't even know what that is so I can't claim to be really au courant.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent