Category Archives: Tools

CQPweb

CQPweb

2023-07-23 Developer / Project Head: Andrew Hardie
Purpose/Version/Date web interface to cwb stable: 3.2.43 dev: 3.3.15 [r1848] 31 Dec 2021 / 23 July 2023 Platform/License web-based (also on localhost) open source License: GNU GPLv2+ Price/Availability free Programming Language(s): php, mysql, Perl Key features: SERVER INSTALLATION, MANAGE YOUR OWN CORPORA, WEB INTERFACE, CQP QUERIES Website: CQPweb project page Website: CQPWeb SVN Repository Website: UCREL Lancaster Corpus Server (free access to a lot of corpus resources after registration, including the extended Brown-family of corpora) Website: CQPweb at Beijing Foreign Studies University – Large Number of publicly accessible corpora (username: test, password: test) Website: CQPweb Video Tutorials Website: CQPwebInABox Video Tutorials
Return to top.

Related posts on langui.ch:

AntWebCorpusFramework on Xubuntu 12.04 LTS

Steb-by-step guide to install Laurence Anthony’s AntWebCorpusFramework [1] on Xubuntu 12.04 LTS:

Requirements: webserver (e.g. apache2), php5, perl, parallel corpus (two sentence aligned parallel text files in strict utf-8 format)

[Click on 'Overview' and 'Select Category' ⇨ 'Corpus Development Tools' ⇨ 'Sentence Alignment' for a list of tools you could use to create your own parallel corpus.]

  1. Install apache2 web-server environment with php5 and enable sqlite support for perl and php5
  2. Extract files to a new AntWCF directory and create database(s)
  3. Adapt antpwc_concordance.php to new corpus
  4. Adapt index.php to new corpus
  5. Create apache2 configuration file
  6. Start webbrowser and go to http://localhost/AntWCF

Install apache2 web-server environment with php5 and enable sqlite support for perl and php5

Open a terminal window and type:

sudo apt-get install apache2 php5 php5-sqlite libdbd-sqlite3-perl

Troubleshooting:

If you would like to get rid of apache2‘s warning “Could not reliably determine the server’s fully qualified domain name”, click here for a quick fix (the server works just fine even if you don’t specify ServerName).

Open zip-file (available on request: [1]), extract all files into a new AntWCF directory and create database(s)

Change into the new AntWCF directory:

cd path/to/AntWCF

Troubleshooting:

If you get a permission error when trying to drag&drop files into the new AntWCF directory, you probably created the directory outside your home area, using the sudo command (e.g. in /opt). To be able to drag&drop files into the directory, you can take ownership by typing:

sudo chown -R yourusername:yourusername /path/to/AntWCF

After successfully extracting the files into your  AntWCF directory, copy your parallel corpus files to AntWCF/data/corpus.

To create a database for a parallel corpus type:

perl ./bin/db_creator_L8-CEN-R8da.pl data/corpus/L1_FILE.txt data/corpus/L2_FILE.txt data/AntWCF_db/OUTPUT_FILE.db

 Note: [1 corpus = 2 txt files (your files) + 1 db file (created by script)]

L1_FILE.txt is the source text file of your parallel corpus that you have just copied into the AntWCF/data/corpus directory, L2_FILE.txt is the target text file of your parallel corpus and OUTPUT_FILE.db is the name of the sqlite database to be created by the script (extension: .db).

Take a note of the name of the new database file and the number of tokens for L1/L2 displayed by the script (or make sure that you do not close the terminal window, as you will need these pieces of information later on).

Delete the temporary files created by the script:

rm temp_*

Repeat this procedure for other parallel corpora you might wish to include in AntWCF

Troubleshooting:

If the script throws an encoding error, make sure that your text files only contain legal utf8 characters and eliminate all non-utf8 characters before running the database script again. Important: If you choose the same output  file name, you have to delete the old file before re-running the script.

Adapt antpwc_concordance.php to new corpus

Open the file www/antpwc_concordance_20120925_2342.php in a text editor of your choice (e.g.):

leafpad www/antpwc_concordance_20120925_2342.php

[Select 'Options' ⇨  'Line Numbers' for easier navigation]

Adapt the following lines for your own parallel corpus:

Note: AntWCF is preconfigured to be able to switch between two different parallel corpara. If you created just one database file, comment out lines 32-34 and lines 40-42 (using ‘//‘ at the beginning of each line) or fill in the same data twice. If, however, you created more than two databases, you could include those corpora by copying lines 32-34, inserting them once before line 35 and a second time before line 43. Subsequently, you could adapt the database information for an additional corpus (and so on …). For number of tokens per language, refer back to the information generated by the db_creator.pl script above.

28-01-2014 10-42-53

Adapt index.php to new corpus

Open the file www/index.php in a text editor of your choice.

Adapt the following lines for your own parallel corpus:

Set default database:

29-01-2014 09-15-55

Adapt database information:

Note: AntWCF is preconfigured to be able to switch between two different parallel corpara. If you just created one database file, comment out line 110 or just fill in the same data twice. If you created more than two database files, copy line 110, insert it before line 111 and adapt the database file and corpus names:

28-01-2014 23-35-55

Adapt the language pair for your own parallel corpus (line numbers will have changed slightly if you inserted additional databases above).

28-01-2014 11-14-20

Create apache2 configuration file

Create an new file called AntWCF.conf in the directory /etc/apache2/conf.d/ and open it in a text editor of your choice (e.g.):

sudo leafpad /etc/apache2/conf.d/AntWCF.conf

Copy-paste the following lines into the new file, adapt the absolute path to your AntWCF/www directory (twice for Alias and for Directory) and save the file (you will need superuser privileges (sudo) to be able to save the file in this location):

# AntWCF default Apache configuration

Alias /AntWCF /path/to/AntWCF/www

<Directory /path/to/AntWCF/www>
     Options FollowSymLinks
     DirectoryIndex index.php
</Directory>

After saving the file successfully, restart apache2 by typing:

sudo service apache2 restart

Start webbrowser, go to http://localhost/AntWCF and enjoy!

29-01-2014 09-38-31

References:

  1. Anthony, L. (2014). AntWebCorpusFramework (Version 1.0) [Computer Software]. Tokyo, Japan: Waseda University. Available on request at http://www.laurenceanthony.net/

AntWebCorpusFramework

AntWebCorpusFramework

2012-09-25 Developer / Project Head: Laurence Anthony
Purpose/Version/Date Web‐based framework for distribution and analysis of single and parallel corpora 1.0 25 Sep 2012 Platform/License Win/Linux/OSX freeware / open source / available on request at http://www.laurenceanthony.net License: not specified Price/Availability free Programming Language(s): Perl, php Key features: MINIMAL PRE-PROCESSING REQUIRED, SERVER INSTALLATION, (PARALLEL) KWIC, SORTING, HIGHLIGHTING OF KEYWORD IN PARALLEL CORPUS, ACTIVE SENTENCE HIGHLIGHTING, WEBPARANEWS, ANTWEBCONC Website: Laurence Anthony\’s Homepage (EN) Website: AntWCF EN-DE (sample implemenation 2014) Website: WebParaNews EN-JP (sample implemenation 2012) Website: Step-by-step installation guide on Xubuntu 12.04 LTS
Return to top.

Related posts on langui.ch:

AntConc 3.4.1m (2014) on OSX Mavericks (OS X 10.9)

[Last update: 06/02/2014]

By default, if you try to open AntConc 3.4.1m (2014) on Mac OS X Mavericks, it is blocked by OSX Gatekeeper:

24-01-2014 00-32-47

  • To be able to start the app, you need to add it as an exception: Go to ‘Apple Icon’ ⇨ ‘System Preferences’ ⇨ ‘Security & Privacy’:

24-01-2014 00-37-03

  • Click on ‘Open Anyway’ (you need to have double-clicked AntConc before for this option to appear):

24-01-2014 00-38-22

  • and click on ‘open’ in the following dialogue:

24-01-2014 00-40-52

25-01-2014 12-53-06

 

For a discussion of known issues, visit: https://groups.google.com/forum/#!forum/antconc

Users reported:

  • screen refresh issues when changing parameters (workaround: change tab or move window to reflect changes)

AntConc 3.2.4m (2011) on OSX Mavericks (OS X 10.9)

There are two things that you have to bear in mind, when trying to start AntConc 3.2.4m on Mac OS X Mavericks:

(jump to Troubleshooting section if antconc pops up briefely and disappears again)

1) By default, if you try to open the app, it is blocked by OSX Gatekeeper:

23-01-2014-22-57-48.png

  • To be able to start the app, you need to add it as an exception: Go to ‘Apple Icon’ ⇨ ‘System Preferences’ ⇨ ‘Security & Privacy’:

23-01-2014 22-58-40

  • Click on ‘Open Anyway’ (you need to have double-clicked antconc3.2.4m before for this option to appear):

23-01-2014 22-59-02

  • and click on ‘open’ in the following dialogue:


23-01-2014 23-48-38

2) Download, install & run the latest X11:

  • The first time you try to open the app, you’ll see the following message:

23-01-2014 23-51-26

  • You can click on ‘Continue’ or go directly to the download page:
  • Download and open the latest .dmg file
  • Install XQuartz on your system
  • Start X11 (‘Finder’ ⇨ ‘Go’ ⇨ ‘Utilities’ ⇨ ‘XQuartz’)
  • Double-click antconc3.2.4m


24-01-2014 00-07-09

Troubleshooting

If the antconc3.2.4m icon only pops up briefly in the doc area and disappears again, you forgot to start X11 before starting AntConc:

Open ‘XQuartz’: ‘Finder’ ⇨ ‘Go’ ⇨ ‘Utilities’ ⇨ ‘XQuartz’

24-01-2014 00-09-06

and double-click antconc afterwards. (Go back to Section 2 if ‘XQuartz’ is not present in the ‘Utilities’ folder.)

 

Installing uplug on Linux

Tested on: Xubuntu 12.04 LTS (64-bit) for languages English, German (& French)

  • Install/check for uplug dependencies (libmodule-install-perl is compulsory, others could also be installed through cpan when running make):
  1. sudo apt-get install libmodule-install-perl libxml-parser-perl libxml-simple-perl libfile-sharedir-perl libipc-run-perl
  • Clone latest version from bitbucket repository:
  1. git clone https://bitbucket.org/tiedemann/uplug.git uplug
  • Third-party tools that are not automatically installed:
    • MElt (Tagger for French)
      • Dependencies: sudo apt-get install gawk python-numpy
  • Install individual modules:
cd uplug-XY
perl Makefile.PL
make
sudo make install
  • Install all modules:
cd uplug
make all
sudo make install
make test

Running InterText Editor on Linux

Tested on: Xubuntu 12.04 LTS (64-bit)

  1. sudo apt-get install libqt4-gui
  • Download latest release (InterText is a 64-bit linux binary without extension) and run InterText Editor:
  1. mkdir InterText
    cd InterText
    wget http://wanthalf.saga.cz/InterText
    chmod +x InterText
    ./InterText
  • Download icon and create desktop shortcut (copy-paste [Desktop Entry] into a new file called InterText.desktop on your Desktop, don’t forget to adapt the full path to InterText binary and InterText_logo.gif):
  1. wget http://langui.ch/wp/wp-content/uploads/2014/01/InterText_logo.png
  1. [Desktop Entry]
    Version=1.0
    Type=Application
    Name=InterText 1.1.1
    Comment=Parallel Alignment Editor 
    Exec=/path/to/InterText/InterText
    Icon=/path/to/InterText/InterText_logo.png

Running TextSTAT on Linux

Tested on: Xubuntu 12.04 LTS (64-bit), using default python interpreter (v2.7.3)

[Last update: 04/03/2014]

  • Install/check for TextSTAT dependencies:
  1. sudo apt-get install python-tk
  • Download latest release (check here for latest version number) and run TextSTAT:
  1. mkdir TextSTAT
    cd TextSTAT
    wget http://neon.niederlandistik.fu-berlin.de/static/textstat/TextSTAT-2.9c-source.zip
    unzip TextSTAT-2.9c-source.zip
    chmod +x TextSTAT.pyw
    ./TextSTAT.pyw
  • Download icon and create desktop shortcut (copy-paste [Desktop Entry] into a new file called TextSTAT.desktop on your Desktop, don’t forget to adapt the full path to TextSTAT.pyw and textstat_logo.gif):
  1. wget http://neon.niederlandistik.fu-berlin.de/static/textstat/textstat_logo.gif
  1. [Desktop Entry]
    Version=1.0
    Type=Application
    Name=TextSTAT 2.9c
    Comment=Concordancing Program written in Python
    Exec=/path/to/TextSTAT/TextSTAT.pyw
    Icon=/path/to/TextSTAT/textstat_logo.gif

LF Aligner

LF Aligner

2023-07-29 Developer / Project Head: Andreas Farkas
Purpose/Version/Date Graphical interface to hunalign & alignment editor 4.25 (stable) / 4.26 (dev) 7 May 2023 / 29 July 2023 Platform/License Win/Linux/OSX open source License: GNU GPLv3+ Price/Availability free Programming Language(s): Perl Key features: EDIT AND CORRECT AUTOMATIC SENTENCE ALIGNMENTS Website: LF Aligner project page
Return to top.

Related posts on langui.ch

Uplug

OPUS multilingual search interface (uplug-cwb)

2019-12-16 Developer / Project Head: Jörg Tiedemann
Purpose/Version/Date scripts for indexing and querying parallel corpora with CWB 3.10 2019-12-16 Platform/License Linux/OSX open source License: GNU GPLv3+ Price/Availability free Programming Language(s): Perl Key features: CWB, CORPUS INDEXING, PARALLEL CORPUS QUERYING Website: OPUS project page Website: Uplug Repository
Return to top.

Uplug

2019-12-16 Developer / Project Head: Jörg Tiedemann
Purpose/Version/Date NLP tools for processing (parallel) corpora stable: 0.3.10 16 Dec 2019 Platform/License Linux/OSX open source License: GNU GPLv3+ Price/Availability free Programming Language(s): Perl Key features: COMPLETE (PARALLEL) CORPUS CREATION PIPELINE Website: Uplug Repository Website: OPUS project page
Return to top.

Related posts on langui.ch