Tools Home : Plain Text Tools : Find Text — Co-occurrence

Click here to show HTML tools HTML Tools

Click here to expand XML tools XML tools

Click here to expand plain text tools Plain Text Tools

Click here to expand other tools Other tools

 Beta tools
 Add Tools Demo
 Manual
 About

Find Text — Co-occurrence
?
Summary

This tool searches for two words at a user-defined distance of words, sentences, lines or paragraphs apart from one another, within a text (.txt) document located either at a user-specified web address or uploaded from the user’s files. If desired, the results can be narrowed to include words only found within certain tags.

Please click the ? buttons at the bottom right of each set of options for more information on that set.

For further information on this tool, please see the TADA Wiki's Co-ocurrance entry here. A glossary of terms is also available here.

Walkthrough

To generate co-occurrences for text found within http://tada.mcmaster.ca/wikita/pub/Main/ToolTestingTexts/GulliversTravels.txt, limit the results to strings of text that contain both 'Yahoo' and 'Houyhnhnms' within 15 words of one another, and display the results as HTML:
  1. Source text
    1. Enter ‘http://tada.mcmaster.ca/wikita/pub/Main/ToolTestingTexts/GulliversTravels.txt’ into the ‘URL’ field.
  2. What to find
    1. Enter ‘Yahoo’ into the ‘Primary pattern’ field.
    2. Enter ‘Houyhnhnms’ into the ‘Co-pattern’ field.
  3. Context for concordance
    1. Set the ‘Context’ drop list to ‘Words’.
    2. Enter ‘15’ into the ‘Context length’ field.
  4. Results
    1. Set the ‘Display as’ field to ‘HTML’.
  5. Click the ‘Submit’ button to process the text.
*
» Source text
  Example: http://taporware.ualberta.ca/sampleDocs/plainText.txt


?
Summary

This section determines the source of the document you wish the tool to process.

Fields

Source URL
To use content from a web page, enter a full web address (URL) in the field provided. Copy and paste from your browser’s address bar for best results. If the web address directs to an HTML or XML document instead of plain text, the tool will strip all tags and process it as plain text.

Local file
To upload a plain text (.txt) file from your computer, choose ‘Local file,’ click ‘Browse,’ and select the file you wish to use from your directory.

*
» What to find
?
Summary

This section defines the primary and secondary words or patterns to search for within the source text. A pattern may be a string of characters or a regular expression.

Fields

Primary pattern
Enter the first word or pattern here.

Co-pattern
Enter the second word or pattern here.
*
» Context for concordance
?
Summary

This section allows the user to define the context type and how many of that type to show on either side of each instance of the word or pattern.

Fields

Context
Context can be set to one of four options from the drop menu: words, lines, sentences and paragraphs. Note: Paragraphs is not available for the Raw Grep tool.

Context Length
This drop menu allows users to enter how many words, lines, sentences or paragraphs they want to show before and after the word or pattern.
» Results
?
Summary

This section allows users to choose how the results will be formatted, and whether to display it in a new browser window.

Display as
This drop-down lists enables users to choose from several output formats: HTML, XML text in HTML, XML tree, and Tab delimited text.

Display words before and after the pattern
Check this box to show the chosen context before and after the specified word or pattern. Note: This option is only available for the Concordance and Raw Grep tools.

Open results in new window
Check this box to display the results in a new window or browser tab. This option is selected by default. Some pop-up blockers may prevent a new window from being opened; if so, un-check the box to open the results in the same window instead.
`*' indicates a required field

 

 

TAPoRware Project, McMaster University,