Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

natural language processing fix for combined words

Tags:

regex

nlp

I have some text that was generate by another system. It combined some words together in what I assume was some sort of wordwrap by-product. So something simple like 'the dog' is combine into 'thedog'.

I checked the ascii and unicode string to see is there wasn't some unseen character in there, but there wasn't. A confounding problem is that this is medical text and a corpus to check against aren't that available. So, real example is '...test to rule out SARS versus pneumonia' ends up as '... versuspneumonia.'

Anyone have a suggestion for finding and separating these?

like image 311
rich Avatar asked Mar 15 '11 23:03

rich


People also ask

What is the main challenges of NLP?

The main challenge is information overload, which poses a big problem to access a specific, important piece of information from vast datasets. Semantic and context understanding is essential as well as challenging for summarisation systems due to quality and usability issues.

Which is the correct order for processing in natural language processing?

The various text preprocessing steps are: Tokenization. Lower casing. Stop words removal.

How are all the words in a sentence related to each other termed in NLP?

One of the words in a sentence acts as a root and all the other words are directly or indirectly linked to the root using their dependencies. These dependencies represent relationships among the words in a sentence and dependency grammars are used to infer the structure and semantics dependencies between the words.

What is word segmentation in NLP?

Word tokenization (also called word segmentation) is the problem of dividing a string of written language into its component words. In English and many other languages using some form of Latin alphabet, space is a good approximation of a word divider.


1 Answers

This may be of interest to you http://www.perlmonks.org/?node_id=336331

You can probably use the medical nature of the text to your advantage by using two dictionaries, one containing only medical terminology and one of general English.

If you can isolate out medical words then run the rest of the string against the general dictionary you should get some decent results.

like image 110
Finbar Crago Avatar answered Oct 12 '22 10:10

Finbar Crago