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

For testing purposes I need to create sets of text files that have similar
I have a .rc file which is used to include some text data in
In a project we have text files looking like this: mv A, R3 mv
I have over a million text files compressed into 40 zip files. I also
I have to deal with text files in a motley selection of formats. Here's
I have to deal with very large text files (2 GBs), it is mandatory
I have an application that prints by generating text files with embedded printer codes,
I have a big load of documents, text-files, that I want to search for
I've been trying to deal with some delimited text files that have non standard
Let's say you have a text file like this one: http://www.gutenberg.org/files/17921/17921-8.txt Does anyone has

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.