Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4092582
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:30:34+00:00 2026-05-20T19:30:34+00:00

I have text files which are tagged using NER and I need to link

  • 0

I have text files which are tagged using NER and I need to link them to a Google map.

<p>Gardai|NNP|O fear|VBP|O a|DT|O 28-year-old|JJ|O man|NN|O ,|,|O missing|VBG|O from|IN|O his|PRP$|O Dublin|NNP|I-PER home|NN|O for|IN|O a|DT|I-DAT week|NN|I-DAT

Although locations are not tagged correctly ie. Dublin is tagged as a person, I want to use the Google Geocoding API, to feed in the location which is identified as being NER tagged and find the location!

Is this possible?

I was thinking of creating a regex to extract any information which is tagged as a location, organisation or person and give it to Google and see if it has a latitude and longitude co-ordinatea that corresponds to it. Or take the 2-3 words in a row that are tagged as NER and add them as an entire address.

I’m just not sure about how I actually give this information to Google!?

Then I’m going to use the Json response to link the text file to the map using the address Google Geocoder matched.

Any insight or ideas would be greatly appreciated!
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T19:30:35+00:00Added an answer on May 20, 2026 at 7:30 pm

    You can use JavaScript’s Split function to get the data with delimiter being | and turn the data into an array. Let’s say if your data is this html format:

    <p id='data'>Gardai|NNP|O fear|VBP|O a|DT|O 28-year-old|JJ|O man|NN|O ,|,|O missing|VBG|O from|IN|O his|PRP$|O Dublin|NNP|I-PER home|NN|O for|IN|O a|DT|I-DAT week|NN|I-DAT</p>
    

    To grab the data w/ delimiter set to | you can do the following with JavaScript:

    function parseDataGeocode() {
        var mydata = document.getElementById('data').innerHTML;
        mydata = mydata.split('|');
        var locationIndexMod = 3; //this determines which element to pull from the array
        for (var i = 0; i < mydata.length; i++) {
            if (i % locationIndexMod == 0) {
                console.log(mydata[i]); //hopefully it's a location
                //do your marker creation after fetch Geocode Lat Lng
                //with mydata[i] as the location/address
            }
        }
    }
    
    window.onload = parseDataGeocode;
    

    Here is the JSFiddle Demo. Using firebug on firefox or google chrome’s console tool you can see the data output, and if you need help w/ creation of markers and Geocode please let me know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have text files which I need to remove stop words from them. I
I have large text files upon which all kinds of operations need to be
I have several large text files (30m+ lines, >1GB) which are being processed in
I have a bunch of log files which are pure text. Here is an
We have a CMS which has several thousand text/html files in it. It turns
I have some xml files that contain text, which are displayed on my website.
I have a text file which contains data seperated by '|'. I need to
I have a text file which I want to filter using awk. The text
I have some text files which I am trying to transform with a Perl
I have some large text files which im going to preform consecutive matching on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.