Home

MetaMap 2012
(26 Jul 2011)

MetaMap 2011v2
(29 May 2011)

MetaMap 2011
(29 Sep 2011)


Please Note: Users are responsible for compliance with the UMLS Metathesaurus License Agreement.

To download MetaMap, you must have accepted the terms of the UMLS Metathesaurus License Agreement, which requires you to respect the copyrights of the constituent vocabularies and to file a brief annual report on your use of the UMLS. You also must have activated a UMLS Terminology Services (UTS) account. For information on how we use UTS authentication please select the Info icon to the right: Information Mark Symbol: Help about UTS accounts

For details of the licenses see the UMLS Metathesaurus License Agreement and How to License and Access the Unified Medical Language System® (UMLS®) Data.


About MetaMap

MetaMap is a highly configurable program developed by Dr. Alan (Lan) Aronson at the National Library of Medicine (NLM) to map biomedical text to the UMLS Metathesaurus or, equivalently, to discover Metathesaurus concepts referred to in text. MetaMap uses a knowledge-intensive approach based on symbolic, natural-language processing (NLP) and computational-linguistic techniques. Besides being applied for both IR and data-mining applications, MetaMap is one of the foundations of NLM's Medical Text Indexer (MTI) which is being used for both semiautomatic and fully automatic indexing of biomedical literature at NLM. For more information on MetaMap and related research, see the SKR Research Information Site.

What's New in MetaMap?

July 2012 - MetaMap 2012 Release

MetaMap 2012 is primarily a bug-fix release including the 2012AA version of the UMLS data.

May 2012 - MetaMap 2011 Version 2 Release (2011v2)

MetaMap2011v2 includes some significant enhancements, most notably revisions to the mappingconstruction algorithms that further speed the analysis of text that had remained problematic for MetaMap 2011. This release also includes improvements to the format of all MetaMap output (human readable, Prolog Machine Output, and XML), as well as two new input formats. The changes to MetaMap’s output format will almost certainly require modifications to user-developed programs that postprocess MetaMap output.

These enhancements include:

See the MetaMap 2011 v2 Release Notes (PDF) for more information.

October 2011 - MetaMap 2011 Release

MetaMap2011 includes some significant enhancements, most notably algorithmic improvements that enable MetaMap to very quickly process input text that had previously been computationally intractable.

These enhancements include:

Starting with MetaMap 2011, MetaMap is now available for Windows XP and Windows 7.

Important Note: When using MetaMap 2011 with data sets earlier than 2011, users may experience problems when applying the --restrict_to_sources and --exclude_sources options. The Ancillary Data Files for MetaMap 2011 provide the additional files necessary to ensure proper operation of MetaMap 2011. These files are available for many pre-2011 data sets.

With the 2011 Release of MetaMap, we are retiring two previous versions of MetaMap, namely MetaMap09 and MetaMap09V2. Only the MetaMap binary executables are being retired; the MetaMap UMLS datasets corresponding to these releases (2009AA and 2009AB) will remain available.

Please see the Release Notes for more information on the MetaMap 2011 Release.

October 2010 - MetaMap 2010 Release

With the 2010 Release of MetaMap, we are retiring three previous versions of MetaMap, namely MetaMap07, MetaMap08, and MetaMap08V2. Only the MetaMap binary executables are being retired; the MetaMap UMLS datasets corresponding to these releases (2007AA, 2008AA, and 2008AB) will remain available.

MetaMap 2010 includes less new functionality than previous releases because the bulk of our development efforts since MetaMap09V2 have focused on converting MetaMap from Quintus Prolog to SICStus Prolog, which will henceforth be the principal implementation vehicle of MetaMap. We also converted MetaMap 2010 to version 4.8.24 of Berkeley DB, as recommended by SICS.

New functionality and enhancements delivered in MetaMap 2010 include the following:

Please see the Release Notes for more information.

April 2010 - UIMA Annotator

The MetaMap UIMA Annotator encodes MetaMap named entities in a format utilizable by UIMA components. The annotator is based on the MetaMap UIMA Wrapper authored by Kai Schlamp. The annotator utilizes classes from the MetaMap Java API which is required for use of the annotator.

Differences from Kai Schamp's MetaMap UIMA Wrapper include a modified UIMA type system which includes Acronyms and Abbreviations and the addition of a MatchMap structure to the Candidates and Mappings. Use of MetaMap XML and the SKR API are currently not supported.

January 2010 - MetaMap 2009 version 2 Release

This release provides an updated version of MetaMap consisting of mostly bug fixes and enhancements to our implementation of NegEx, the AA-detection logic and lexical processing.

This release includes also three more substantive changes:

Please see the Release Notes for more information.

December 2009 - Data File Builder Suite Release

The Data File Builder suite exists to allow end users to create custom datasets for use with MetaMap.

A MetaMap data set contains preprocessed UMLS data that MetaMap references as it maps text to concepts. The data set determines the domain of strings that MetaMap will be able to map and the range of target concepts. The Optional Datasets available for download on this site are examples of the standard data sets.

See the MetaMap Data File Builder section for information on downloading the Data File Builder release.

December 2009 - MetaMap Source Code Release

Contains the Prolog and C code and the scripts necessary to build and modify MetaMap, see MetaMap Sources Release in Downloads Section for more information on the prerequisites required to build MetaMap.

July 30, 2009 - MetaMap 2009 Released

New in this Release

  1. NegEx enhancements,
  2. More options for XML generation,
  3. A new sentence-breaking algorithm,
  4. A new input format,
  5. Elimination of Moderate Model, and
  6. Elimination of display_original_phrases command-line option.

Other less visible changes, which will be mentioned but not described further, are various bug fixes involving the exclude_sources option, the display_original_phrase option, the term_processing option, positional information, and Fielded MMI Output. We also added several new Acronym/Abbreviation-detection rules. Finally, we upgraded MetaMap from Berkeley DB 3.0.55 to 4.1.24; this last change is completely transparent to users, but it will require keeping multiple versions of the database files if you want to run both MetaMap09 and any previous release on the same filesystem.

For more information on the changes in MetaMap since the previous release, see the MetaMap 2009 Release Notes.

Caveats

Previous MetaMap databases are not compatible with this version of MetaMap. This version of MetaMap uses data indexes that have additional information within them. If you have used one of the Optional Data Models in the past, you will need to download the new versions from the MetaMap website.

Important Notes


Avenues to MetaMap:

Web Access Our Semantic Knowledge Representation (SKR) website provides both Interactive and Batch facilities that allow users to send text to our internal machines and run various programs including the MetaMap program. The Interactive facility is designed for testing options and running small amounts of text. The Batch facility runs large amounts of text through our Scheduler program which distributes the workload over a large pool of clients. GO TO SKR
MetaMap Distributable version of the original Prolog MetaMap program. Currently only includes binary distribution for Linux and Mac OS/X platforms. GO TO MetaMap
MetaMap Java API The MetaMap Java API is actually two components: the first component is a PrologBeans based client library written in Java and used by Java programs which communicates with the second component: a Prolog server which includes MetaMap. The client and server components can run on the same computer or different computers on the same network. GO TO MetaMap Java API
MetaMap UIMA Annotator This requires the MetaMap Java API to run. This API encodes the MetaMap results to conform to the UIMA (Unstructured Information Management Architecture) standards allowing the downloaded version of MetaMap to be included in users UIMA processing flows. GO TO MetaMap UIMA Annotator
SKR Web API Java-based API to the SKR Scheduler facility was created to provide users with the ability to programmatically submit jobs to the Scheduler Interactive and Batch facilities instead of using the web-based interfaces. We have tried to reproduce full functionality for all of the programs under the SKR Scheduler umbrella. The SKR Web API has been tested on Linux, Solaris, Mac OS/X, and Windows XP platforms (using a Linux or Mac OS/X API server). GO TO SKR Web API

New to MetaMap, or confused as to what you should use?

If you are new to MetaMap, or are unsure where to start, we would recommend starting with our research papers on MetaMap at the MetaMap section of the SKR Research Information Site. We also recommend using our Interactive web interface first to get a feel for how MetaMap works and how the various options affect the results. Once you have a good feel for what you would like to do, the decision comes down to how much control you want of your data. If you need to run everything locally, you are going to need to download and install either our MetaMap program or our MMTx program depending on what is available for your platform of choice. If you do not need to maintain control of your data, we offer a Batch facility for processing large sets of data through our pool of clients. You can access our Batch facility through our SKR web site, or through our Java-based SKR API. In either case, your data is uploaded to our web site, processed by our Scheduler program, and then the results are provided to you. We maintain your data and results for a maximum of 15 days and then they are purged from our systems. Only you and our team have access to the data and results. We only review Batch jobs when there is a specific request, or we see a Batch job causing problems with the Scheduler.


MetaMap

Prerequisites:



Downloads

PLEASE NOTE: The downloads are restricted and require a valid UTS username and password! Please see the above list of prerequisites before attempting to download MetaMap.

Currently, each of the full downloads contains a binary version of MetaMap compiled specifically for either Linux, Mac OS/X, or Windows (for earlier releases or by request), and we have included the Strict Data Model for each of the years respectively. Available separately is the Relaxed Data Model for each year.

When using MetaMap 2012 or 2011 with data sets built for MetaMap 2010 and earlier, users may experience problems when applying the --restrict_to_sources and --exclude_sources options.

Full Downloads

MetaMap 2012

Each distribution file contains the MetaMap 2012 binary, the MedPost/SKR server, the WSD server, and the 2012 AA USAbase Strict Data Model. This distribution requires at least 10 gigabytes of free disk space to use. Note: if you have already installed MetaMap 2011 you should only need the 2012 binary update.

MetaMap 2011 version 2

Each distribution file contains the MetaMap 2011 version 2 binary, the MedPost/SKR server, the WSD server, and the 2011 AA USAbase Strict Data Model. This distribution requires at least 10 gigabytes of free disk space to use. Note: if you have already installed MetaMap 2011 you should only need the 2011v2 binary update.

MetaMap 2011 (deprecated)

Each distribution file contains the MetaMap 2011 binary, the MedPost/SKR server, the WSD server, and the 2011 USAbase Strict Data Model. This distribution requires at least 10 gigabytes of free disk space to use.

Binary Update Downloads:

These downloads are for users who wish to use a more recent MetaMap binary with previously installed MetaMap data sets. See Optional Datasets section if you wish to use a MetaMap dataset for a later release of the UMLS.

Metamap Binary-only 2012 Update

This is only useful if you have already installed 2011v2, 2011 or 2010 MetaMap or wish to have the latest patches! (New fixes dated: May 2012) This download contains the updated 2012 MetaMap binary for Linux Please use the Binary Update Installation instructions. Note that the binary-only 2012 Update contains the MetaMap binary only, not the UMLS 2012AA dataset. If you wish to use the UMLS 2012AA dataset as well, see Optional Datasets section. Important Note see Additional Optional Datasets for ancillary files necessary for the operation of MetaMap 2012 with datasets created for MetaMap 2010.

MetaMap Binary-only 2011v2 Update

This is only useful if you have already installed 2011 or 2010 MetaMap or wish to have the latest patches! (New fixes dated: May 2012) This download contains the updated 2011 version 2 MetaMap binary for Linux Please use the Binary Update Installation instructions. Important Note: see Additional Optional Datasets for ancillary files necessary for the operation of MetaMap 2011v2 with datasets created for MetaMap 2010.

MetaMap Binary-only 2011 Update

This is only useful if you have already installed 2010 MetaMap or wish to have the latest patches! (New fixes dated: October 2011) This download contains the updated 2011 MetaMap binary for Linux Please use the Binary Update Installation instructions. Important Note: see Additional Optional Datasets for ancillary files necessary for the operation of MetaMap 2011 with datasets created for MetaMap 2010.

Optional Datasets

These optional datasets are configured for the 2010 and later versions of MetaMap, so they will not work with previous releases of MetaMap unless otherwise specified. See the documentation on "Using Additional Datasets with Public MetaMap" for information on installing optional datasets.

2012 Specialist Lexicon

Only required for MetaMap 2011 and 2010, included in MetaMap 2012 Main Distribution
2012 Specialist Lexicon for MetaMap (Bzip2 Tar - 40 MB). [sha1sum] [md5sum]

2011 Specialist Lexicon

Only required for MetaMap 2010, included in MetaMap 2011 Main Distribution
2011 Specialist Lexicon for MetaMap (Bzip2 Tar - 40 MB). [sha1sum] [md5sum]

2012AB UMLS Base Datasets

Windows Datasets
Linux and Mac OS/X Datasets

2012AB UMLS USAbase Datasets

Windows Datasets
Linux and Mac OS/X Datasets

2012AB UMLS NLM Datasets

Windows Datasets
Linux and Mac OS/X Datasets

2012AA UMLS Base Datasets

Windows Datasets
Linux and Mac OS/X Datasets

2012AA UMLS USAbase Datasets

Windows Datasets
Linux and Mac OS/X Datasets

2012AA UMLS NLM Datasets

Windows Datasets
Linux and Mac OS/X Datasets

2011AB UMLS Base Datasets

Windows Datasets
Linux and Mac OS/X Datasets

2011AB UMLS USAbase Datasets

Windows Datasets
Linux and Mac OS/X Datasets

2011AB UMLS NLM Datasets

Windows Datasets
Linux and Mac OS/X Datasets

Additional DataSets are available; these are listed on the Optional DataSets Page.

MetaMap Data File Builder

The MetaMap application is designed to automatically identify UMLS Metathesaurus concepts referred to in free text. Although the UMLS focuses on biomedical information sources, MetaMap's algorithms are domain independent and can be used with any domain providing adequate knowledge sources. The MetaMap Data File Builder enables such cross-domain utilization of MetaMap by allowing users to create UMLS-like data models similar to the actual UMLS data models normally used by MetaMap.

Brief documentation on installing the MetaMap Data File Builder is in the Datafile Builder README. Instructions on how to use datafile builder is in the MetaMap Data File Builder Manual. Mac OS/X users see also the file README_macosx.html (online version: http://metamap.nlm.nih.gov/README_macosx.html)

MetaMap Data File Builder Downloads

Note: If you experience tagger errors when using 04FilterStrict, part of Data File Builder's filtering process consult the MetaMap FAQ for a possible resolution.

A short article on creating a MetaMap dataset from the EFO Inferred Ontology is in this document: Transforming the EFO Inferred Ontology for MetaMap.

MetaMap Java API Release

This release contains the set of Java Classes that comprise the API and the MetaMap's Mapping Engine Server. In order to use the MetaMap Java API release the following packages are required:

MetaMap 2011 Full Download
The full version of MetaMap 2011 must be downloaded from MetaMap 2011 Full Download and installed before installing the Java API distribution.
Java Runtime Environment (JRE) 1.6 or later
Java Software Development Kit (SDK) 1.6.0 or later is required for use of the Java API. Java Runtime Environment (JRE 1.6) or later is the minimum required environment for running the API. Java is available from the "Developer Resources for Java Technology" website (http://www.java.com/).

The Java API Release (2012)

Linux:
MetaMap Java API Release for Linux (Bzip2 Tar - 16 MB [sha1sum] [md5sum]
MetaMap Java API Release for Linux (64-bit) (Bzip2 Tar - 16 MB [sha1sum] [md5sum]
Windows XP and Windows 7
MetaMap Java API Release for Win32 (7-Zip format - 16 MB [sha1sum] [md5sum]
MetaMap Java API Release for Win32 (Zip format - 16 MB [sha1sum] [md5sum]
Mac OS/X:
MetaMap Java API Release for Mac OS/X (Bzip2 Tar - 6 MB) [sha1sum] [md5sum]

The Java API Release (2011v2)

Linux:
MetaMap Java API Release for Linux (Bzip2 Tar - 16 MB [sha1sum] [md5sum]
Windows XP and Windows 7
The Java API is included in the 2011v2 Main Public MetaMap Release for Windows.
Mac OS/X:
MetaMap Java API Release for Mac OS/X (Bzip2 Tar - 6 MB) [sha1sum] [md5sum]

The Java API Release (2011 [deprecated])

Linux:
MetaMap Java API Release for Linux (Bzip2 Tar - 16 MB [sha1sum] [md5sum]
Windows XP and Windows 7
The Java API is included in the 2011 Main Public MetaMap Release for Windows.
Mac OS/X:
MetaMap Java API Release for Mac OS/X (Bzip2 Tar - 6 MB) [sha1sum] [md5sum]

There is brief documentation on Using the MetaMap Java API (http://metamap.nlm.nih.gov/README_javaapi.html.) The JavaDoc Documentation for the MetaMap Java API is at http://metamap.nlm.nih.gov/javaapi/javadoc.

If you wish to modify the server portion of the API you'll need the MetaMap Sources Release as well. Note: The Jython MetaMap API example file testapi.py supplied in the Java API distribution is out of date. An updated version of the source is available.

MetaMap UIMA Annotator

This annotator encodes MetaMap named entities in a format utilizable by UIMA components. The annotator is based on the MetaMap UIMA Wrapper (http://sourceforge.net/projects/metamap-uima/) authored by Kai Schlamp.

It is assumed the user has adequate knowledge of Java software development and the Apache UIMA Framework in particular. Knowledge pertaining to using the UIMA framework with the Eclipse Integrated Development Environment is useful, but not required.

The annotator has the following pre-requisites:

MetaMap 2011 Full Download
The full MetaMap download and installation is required to use the MetaMap UIMA Annotator.
Java Runtime Environment (JRE) 1.6 or later
Also, Java 1.6 SDK or greater is required.
MetaMap Java API
The UIMA Annotator also uses classes from MetaMap Java API, so if your using Linux or Mac OS/X, (It's provided with Windows XP/7) you'll need to install that also.
The UIMA Framework
You will also need the "UIMA Java framework & SDK" which is available from the UIMA Downloads Page.

An Updated release of the MetaMap UIMA Annotator for 2012 is now available: It includes updated UIMA Descriptor Files which now use Java classpath-based paths instead of location-based paths to avoid any Windows file path issues.

Information on installing the release on Windows has been added to the document: "Using the MetaMap UIMA Annotator". Also, the document now has a section on using the MetaMap Annotator in the Eclipse IDE.

MetaMap UIMA Annotator Downloads

The MetaMap UIMA Annotator release is now available in Zip and 7-Zip formats and is available here:

There is brief documentation on Using the MetaMap UIMA Annotator (http://metamap.nlm.nih.gov/README_uima.html.) and documentation of the API (http://metamap.nlm.nih.gov/uima/javadoc/).

MetaMap Print (MM_Print): A Tool for Tranforming MetaMap Machine Output

The MM_Print program can convert MetaMap machine output to a number of formats including: Human readable output, MetaMap XML, and other formats.

MetaMap Print 2012 Downloads

Linux:
MetaMap Print 2012 Release for Linux (Tar+Bzip2 archive - 16 MB [sha1sum] [md5sum]
Mac OS/X:
MetaMap Print 2012 Release for Mac OS/X (Tar+Bzip2 archive - 6 MB) [sha1sum] [md5sum]

MetaMap Print 2011 Downloads

Linux:
MetaMap Print 2011 Release for Linux (Tar+Bzip2 archive - 16 MB [sha1sum] [md5sum]

MetaMap Sources Release

This release contains the Prolog and C source code and the scripts necessary to build and modify MetaMap. The MetaMap Source Release currently runs on the following platforms:

In order to build the MetaMap Source release a number of packages are required. These include the following:

MetaMap 2011 Full Download
The full version of MetaMap 2011 must be downloaded from MetaMap 2011 Full Download and installed before installing the source code distribution, as described at the end of this section.
SICStus Prolog 4.2.0
SICStus Prolog is a commercial product available from Swedish Institute of Computer Science (SICS) at
http://www.sics.se/sicstus/
GNU C Compiler
Available from http://gcc.gnu.org/. This should already be installed or be available as a package in your distribution if you're using Linux. If you're using Mac OS/X, the Apple Developer Tools include GCC. This should be provided on one of the distribution disks that is provided with the computer but can also be obtained from Apple Developer Tools Site ( http://developer.apple.com/technologies/tools/.
Java Runtime Environment (JRE) 1.6 or later
Java Software Development Kit (SDK) 1.6.0 or later is preferred but is not required for use of the MetaMap Source Code Suite. Java Runtime Environment (JRE 1.4) or later is the minimum required environment for running MetaMap. Java is available from the "Developer Resources for Java Technology" website (http://www.java.com/).
GNU Binutils
Available from http://www.gnu.org/software/binutils/. This software should already be installed or be available as a package in your distribution if you're using Linux. On Mac OS/X these are provided with the Apple Developer Tools mentioned in the previous section on GNU C Compiler.
GNU Make
Available from http://www.gnu.org/software/make/. This should already be installed or be available as a package in your distribution if you're using Linux or Mac OS/X. If you're using Solaris you can get it from sunfreeware.com (http://www.sunfreeware.com). See next item "Solaris specific prerequisites" for more information.
Berkeley DB 4.8.X
Berkeley DB should already be installed or be available as a package in your distribution if you're using Linux. Otherwise, it is available here. MetaMap 2010 uses Berkeley DB 4.8.24, but that release is no longer available from Oracle; according to SICS, however, a more recent version of 4.8.x should work, such as 4.8.30, which is still available.

Brief documentation on installing and using the MetaMap Source Release is available in the MetaMap Source Distribution README.

MetaMap Source Release Downloads

MetaMap Installation:

If you are installing MetaMap on Windows XP or Windows 7 use the MetaMap Windows Installation Instructions instead.

Move the downloaded file into a directory where you want to install MetaMap. This directory will then be referred to as <parent_directory> throughout the rest of the installation instructions.

To extract the MetaMap distribution, use the following bunzip2 and tar commands substituting the appropriate name of the file you downloaded (e.g., public_mm_linux_2010.tar.bz2, public_mm_macosx_2010.tar.bz2):

% bunzip2 -c public_mm_<platform>_<year>.tar.bz2 | tar xvf -
This set of commands will create the distribution directory public_mm in the current working directory (<parent_directory>). So you will have created <parent_directory>/public_mm.

To begin the initial install, go to the directory created when you extracted the distribution (public_mm).

% cd public_mm
You can speed up the process by telling the install program where your java installation is by setting the environment variable JAVA_HOME to the Java installation directory. If you don't set the variable the program will prompt you for the information.

To find out where your java installation is located, use the following command:

% which java
To set the environment variable JAVA_HOME, use the information from the which command. For example, if the command: which java returns /usr/local/jre1.4.2/bin/java, then JAVA_HOME should be set to /usr/local/jre1.4.2/.

# in C Shell (csh or tcsh)

setenv JAVA_HOME /usr/local/jre1.4.2

# in Bourne Again Shell (bash)

export JAVA_HOME=/usr/local/jre1.4.2

# Bourne Shell (sh)

JAVA_HOME=/usr/local/jre1.4.2
export JAVA_HOME
	    
You also need to add the <parent dir>/public_mm/bin directory to your program path:

# in C Shell (csh or tcsh)

setenv PATH <parent dir>/public_mm/bin:$PATH

# in Bourne Again Shell (bash)

export PATH=<parent dir>/public_mm/bin:$PATH

# Bourne Shell (sh)

PATH=<parent dir>/public_mm/bin:$PATH
export PATH
	    
Now you are ready to run the installation script:
% ./bin/install.sh
A successful installation should look similar to the following:
% cd <parent dir>/public_mm
% ./bin/install.sh
Enter basedir of installation [<parent dir>/public_mm] <user hits return to get the default>
Basedir is set to <parent dir>/public_mm.

The WSD Server requires Java Runtime Environment (JRE)
Java Developer Kit (JDK) will work as well. if the
command: "which" java returns /usr/local/jre1.4.2/bin/java, then the
JRE resides in /usr/local/jre1.4.2/.

Where does your distribution of JRE reside?
Enter home path of JRE (JDK) [/usr]: /nfsvol/nls/tools/Linux-i686/java1.4.2
Using /nfsvol/nls/tools/Linux-i686/java1.4.2 for JAVA_HOME.

<parent dir>/public_mm/WSD_Server/config/disambServer.cfg generated
<parent dir>/public_mm/WSD_Server/config/log4j.properties generated
<parent dir>/public_mm/bin/SKRrun generated.
<parent dir>/public_mm/bin/metamap10 generated.
<parent dir>/public_mm/bin/wsdserverctl generated.
<parent dir>/public_mm/bin/skrmedpostctl generated.
Install complete.

%
	  

MetaMap requires the starting of one or two servers depending on how you plan to use MetaMap. The SKR/MedPost Part-of-Speech Tagger Server is required regardless of how you use MetaMap. The Word Sense Disambiguation (WSD) Server is optional and only needs to be started if you want/plan to use the WSD option (-y) with MetaMap. They can be started and stopped as follows. Both servers will automatically run in the background when started.

Starting the SKR/Medpost Part-of-Speech Tagger Server:

% ./bin/skrmedpostctl start
Starting the Word Sense Disambiguation (WSD) Server (optional):
% ./bin/wsdserverctl start
You can stop the each server by invoking the corresponding script with the stop parameter:

Stopping the SKR/Medpost Part-of-Speech Tagger Server:
% ./bin/skrmedpostctl stop
Stopping the Word Sense Disambiguation (WSD) Server:
% ./bin/wsdserverctl stop
You can determine if the server are running by the command:
% ps -ef | grep java
The output should look something like this:
11318 pts/4 S+ 0:00 grep java
21254 ? Sl 0:10 /usr/local/j2sdk1.4.2_06/bin/java -cp ... /MedPost-SKR/Tagger_server/lib/mps.jar taggerServer
21267 ? Sl 0:10 /usr/local/j2sdk1.4.2_06/bin/java -Xmx2g ... WSD_Server/lib/log4j-1.2.8.jar wsd.server.DisambiguatorServer
Once the servers have been started and verified, you can test your MetaMap installation by using the following command:
% echo "lung cancer" | ./bin/metamap10 -I
You should see a result similar to the following:
MetaMap (2010)

Control options:
  tag_text
  no_acros_abbrs
  an_derivational_variants
  stop_large_n
  plain_syntax
  candidates
  semantic_types
  mappings
  best_mappings_only
  show_cuis
Initializing db_access (10)...
Berkeley DB databases (normal strict model) are open.
Static variants will come from table varsan.
Accessing lexicon <parent directory>/public_mm/lexicon/data/lexiconStatic2010.
Variant generation mode: static.
Initializing tagger on localhost...

Processing 00000000.tx.1: lung cancer

Phrase: "lung cancer"
Meta Candidates (8):
  1000 C0242379:Lung Cancer (Malignant neoplasm of lung) [Neoplastic Process]
  1000 C0684249:Lung Cancer (Carcinoma of lung) [Neoplastic Process]
   861 C0006826:Cancer (Malignant Neoplasms) [Neoplastic Process]
   861 C0024109:Lung [Body Part, Organ, or Organ Component]
   861 C0998265:Cancer (Cancer Genus) [Invertebrate]
   861 C1278908:Lung (Entire lung) [Body Part, Organ, or Organ Component]
   861 C1306459:Cancer (Primary malignant neoplasm) [Neoplastic Process]
   768 C0032285:Pneumonia [Disease or Syndrome]
Meta Mapping (1000):
  1000 C0684249:Lung Cancer (Carcinoma of lung) [Neoplastic Process]
Meta Mapping (1000):
  1000 C0242379:Lung Cancer (Malignant neoplasm of lung) [Neoplastic Process] 
	  
If there are no errors starting the WSD and Tagger servers, and you had a successful test, then MetaMap can be run as follows:
% ./bin/metamap10
MetaMap has a plethora of options that are explained elsewhere (MetaMap 2009 Usage, MetaMap 2008 Usage, or MetaMap 2007 Usage).

Binary Update Installation:

After downloading the binary update archive file, first move to the directory containing the directory of the existing public_mm installation and then extract the archive using tar.

        $ cd <directory containing existing public_mm installation>
	$ tar xvfj public_mm_{os}_binary_{year}.tar.bz2
	

Notes for users migrating from MetaMap09 to MetaMap10

If you are upgrading from MetaMap 2009 to MetaMap 2010, make the following modification to your public_mm/DB directory:

	    $ cd public_mm/DB
	    $ ln -s BDB4/\* .
This will make any databases configured for MetaMap 09 visible to MetaMap 10.

Removing the MetaMap Installation:

Before un-installing MetaMap, make sure both of the MetaMap servers have been stopped (see Stopping the servers).

To un-install MetaMap move to the parent directory of your Metamap installation and run the uninstall program:
% cd <parent directory of installation>
% ./public_mm/bin/uninstall.sh
Do you really want to uninstall MetaMap? [no/yes] yes
Removing Tagger Server
Removing WSD Server
Removing Lexicon
Removing MetaMap Databases
Removing Programs
Removing Base Directory
Removal of MetaMap installation successful.
%
	  

Using MetaMap:

For more information on running MetaMap and its many options, please see these references:

  1. MetaMap 2012 XML Output Explained (HTML) [PDF version]
  2. MetaMap 2012 Machine Output Explained (PDF)
  3. MetaMap 2011v2 Release Notes (PDF)
  4. MetaMap 2011 Release Notes (PDF)
  5. MetaMap 2010 AMIA Tutorial:
  6. MetaMap 2010 Release Notes (HTML)
  7. MetaMap 2009 Release Notes (HTML)
  8. MetaMap 2009 Readme (HTML)
  9. MetaMap 2009 Usage (HTML)
  10. MetaMap 2008 Readme (HTML)
  11. MetaMap 2007 Readme (HTML)
  12. MetaMap 2008 Usage (HTML)
  13. MetaMap 2007 Usage (HTML)
  14. Effective Mapping of Biomedical Text to the UMLS Metathesaurus: The MetaMap Program, 2001  (PDF - 55 kb)
  15. MetaMap: Mapping Text to the UMLS Metathesaurus, July 2006  (PDF - 280 kb)
  16. MetaMap Options and Examples, September 2006  (PDF - 50 kb)
  17. MetaMap output methods and their interaction with the other options (PDF - 31 kb)