Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 04876256 authored by Mathieu Mangeot's avatar Mathieu Mangeot
Browse files

Adding the magic Dockerfile ;-)

parent 0bd07796
##############################################################################
# Dockerfile to build foma and run the nu morphosyntactic fst parser
# Based on debian
#############################################################################
#
# Build part
#
FROM debian:stable
ENV LC_ALL C.UTF-8
RUN apt-get update && apt-get install -y build-essential \
zlib1g-dev \
libreadline-dev \
bison \
flex \
subversion \
graphviz
RUN svn checkout --trust-server-cert https://github.com/mhulden/foma/trunk/foma
WORKDIR /foma
RUN make && make install
WORKDIR /na-fst
COPY . .
RUN foma -l na.foma
RUN dot -T png -O na.dot
WORKDIR /workdir
\ No newline at end of file
### Installation
install foma : https://fomafst.github.io
#### source install:
- build-essential, zlib1g-dev, libreadline-dev, bison, flex
- foma : https://fomafst.github.io
- graphviz
#### docker install:
docker build -t foma .
### Use
>foma
#### docker use:
>docker run -ti --volume /Users/mangeot/docker/na-fst:/workdir foma
>cp /na-fst/* /workdir/.
>cd /workdir
#### foma use:
>cp na.foma na-src.foma
>sed -i 's/^quit$//' na-src.foma
>foma -l na-src.foma
foma[1]: up njɤ˩ ʑi˩ bi˩ -zo˧ -ho˩
#### flookup use:
foma[0]: source na.foma
foma[1]: up njɤ˩ ʑi˩ bi˩ -zo˧ -ho˩
\ No newline at end of file
>echo "njɤ˩ ʑi˩ bi˩ -zo˧ -ho˩" | flookup na.fsm
\ No newline at end of file
......@@ -60,5 +60,11 @@ define Grammar AddToneBoundaries
regex Grammar;
save stack na.fsm
print dot > na.dot
quit
# njɤ˧+Pron+1SG | ʑi˩+Verb+La bi˧+Verb+Mc -zo˧+Obligative -ho˩+Desiderative
# => njɤ˩ ʑi˩ bi˩ -zo˧ -ho˥
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment