Hey,
I just opened a new Topic, for a new Problem, if this is not okay, just message it to me
So i have sveral obervations in sentences like this
Obs Sentence
1 Mr. Jonas Mueller has a job at the university Munich, but has applied to a job in the university Berlin.
2 Mr. Thomas Schmidt, university/college in Hamburg, but has applied to a job on the college Bremen.
3 Mr. Johannes Klaus has applied a job at university Munich.
So i need to extract from these different sentences the locations like Munichm Hamburg, Berlin, Bremen, in extra variables. TABLE 2
Obs location1 locations2(working now)
1 Munich Berlin
2 Hamburg Bremen
3 Munich
So my question is, is there a code:
How to get these locations into extra variables.
More exactly, are there for exemple codes which give me the variables if, before the "location" there is maybe university or college in front, and then just put in the word after the university or college, the location.
It means:
Scan sentence, if there is the word university or college, put in to the variable" location1=Munich, Hamburg" the word after university/college.
For the second university/college after the first one in the sentence OR only 1 university/college in the sentence, put it into the variable" location2=Berlin, Bremen, Munich" the word after university/college.
So I will get TABLE 2.
Hope someone had a similiar issue and could help me
I just opened a new Topic, for a new Problem, if this is not okay, just message it to me

So i have sveral obervations in sentences like this
Obs Sentence
1 Mr. Jonas Mueller has a job at the university Munich, but has applied to a job in the university Berlin.
2 Mr. Thomas Schmidt, university/college in Hamburg, but has applied to a job on the college Bremen.
3 Mr. Johannes Klaus has applied a job at university Munich.
So i need to extract from these different sentences the locations like Munichm Hamburg, Berlin, Bremen, in extra variables. TABLE 2
Obs location1 locations2(working now)
1 Munich Berlin
2 Hamburg Bremen
3 Munich
So my question is, is there a code:
How to get these locations into extra variables.
More exactly, are there for exemple codes which give me the variables if, before the "location" there is maybe university or college in front, and then just put in the word after the university or college, the location.
It means:
Scan sentence, if there is the word university or college, put in to the variable" location1=Munich, Hamburg" the word after university/college.
For the second university/college after the first one in the sentence OR only 1 university/college in the sentence, put it into the variable" location2=Berlin, Bremen, Munich" the word after university/college.
So I will get TABLE 2.
Hope someone had a similiar issue and could help me

Comment